Beispiel #1
0
 public void RunRelayMessage()
 {
     _dispatcherService.DispatchMessage(_message);
 }
Beispiel #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.
 }
 public void DispatchMessage_WhenThereIsNoChannelsRegistered_Throws()
 {
     Assert.Throws <InvalidOperationException>(() => _dispatcherService.DispatchMessage(_emptyMessage));
 }