Пример #1
0
 public void RunRelayMessage()
 {
     _dispatcherService.DispatchMessage(_message);
 }
Пример #2
0
 public void RunRelayMessage()
 {
     _dispatcherService.DispatchMessage(_message);
     Thread.Sleep(1); // hack - needed to put time between benchmarks. System does not recycle threads fast enought. Probably can be solved properly, just don`t have time to do it now.
 }
Пример #3
0
 public void DispatchMessage_WhenThereIsNoChannelsRegistered_Throws()
 {
     Assert.Throws <InvalidOperationException>(() => _dispatcherService.DispatchMessage(_emptyMessage));
 }