public void Verify_that_handler_can_be_invoked_correctly()
 {
     //Verify that I'm able to execute Testcommand
     var listOfHandlers = sut.GetAllHandlerFor(typeof(MyDomainEvent));
     MyDomainEvent evt = new MyDomainEvent();
     foreach (var handler in listOfHandlers)
     {
         handler.Invoke(evt);
     }
     evt.CallCount.Should().Be.EqualTo(1);
 }
Exemple #2
0
        public void Verify_that_handler_can_be_invoked_correctly()
        {
            //Verify that I'm able to execute Testcommand
            var           listOfHandlers = sut.GetAllHandlerFor(typeof(MyDomainEvent));
            MyDomainEvent evt            = new MyDomainEvent();

            foreach (var handler in listOfHandlers)
            {
                handler.Invoke(evt);
            }
            evt.CallCount.Should().Be.EqualTo(1);
        }
        public void BariBari(MyDomainEvent evt)
        {

            evt.CallCount++;
        }
Exemple #4
0
 public void BariBari(MyDomainEvent evt)
 {
     evt.CallCount++;
 }