public void SubscribersStartedUp()
 {
     _subscriber1.Received().Listen(default);
示例#2
0
 public void SubscribersStartedUp()
 {
     _subscriber1.Received().Listen();
     _subscriber2.Received().Listen();
 }
示例#3
0
 public void SubscribersAreToldToStopListening()
 {
     _subscriber1.Received().StopListening();
     _subscriber2.Received().StopListening();
 }
示例#4
0
 public void HandlersAreAdded()
 {
     _subscriber.Received().AddMessageHandler(_handler1);
     _subscriber.Received().AddMessageHandler(_handler2);
 }
示例#5
0
 public void CallingStopTwiceDoesNotStopListeningTwice()
 {
     SystemUnderTest.Stop();
     _subscriber1.Received(1).StopListening();
 }