public void RunRelayMessage() { _dispatcherService.DispatchMessage(_message); }
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)); }