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