Beispiel #1
0
        public void Subscribe(ISubscriber subscriber)
        {
            SubscriberIsNotNull(subscriber);
            var channel = _channelFactory.CreateBinaryChannel(subscriber);

            _dispatcherService.AddChannel(channel);
        }
 public void Subscribe_GivenISubscriber_AddsRelayLinkToRelayService()
 {
     _subscriberService.Subscribe(A.Fake <ISubscriber>());
     A.CallTo(() => _dispatcherService.AddChannel(A <IChannel> ._)).MustHaveHappenedOnceExactly();
 }