Beispiel #1
0
        public static void WhenCallbacksAreClearedEventDoesNotFire()
        {
            bool callbackFired = false;

            EventPublisher.Register <FakeDomainEvent>(x => callbackFired = true);
            EventPublisher.ClearCallbacks();
            EventPublisher.Raise(new FakeDomainEvent());

            Assert.False(callbackFired);
        }