protected override async Task When() { SomeOtherCommandHandler.Clear(); var someCommand = new SomeOtherCommand(); await Bus.Send(someCommand); await TimeSpan.FromSeconds(_timeoutSeconds).WaitUntil(() => MethodCallCounter.AllReceivedMessages.Any()); }
protected override async Task When() { SomeOtherCommandHandler.Clear(); var someCommand = new SomeOtherCommand(); await Bus.Send(someCommand); await Timeout.WaitUntil(() => MethodCallCounter.AllReceivedMessages.Any()); }