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

            await Timeout.WaitUntil(() => MethodCallCounter.AllReceivedMessages.Any());
        }