Пример #1
0
        public void DispatchMessage_CallsEnqueueMessageOnSubscribedChannels()
        {
            var relayLink = A.Fake <IChannel>();

            _dispatcherService.AddChannel(relayLink);
            _dispatcherService.DispatchMessage(_emptyMessage);
            A.CallTo(() => relayLink.EnqueueMessage(_emptyMessage)).MustHaveHappenedOnceExactly();
        }