protected override async Task When() { _someContent = Guid.NewGuid().ToString(); _goBangCommand = new GoBangCommand(_someContent); await Bus.Send(_goBangCommand); await Timeout.WaitUntil(() => MethodCallCounter.AllReceivedCalls.Count() >= _maxDeliveryAttempts); _deadLetterMessages = await Bus.DeadLetterOffice.PopAll(1, TimeSpan.FromSeconds(TimeoutSeconds)); }
protected override async Task When() { _someContent = Guid.NewGuid().ToString(); _goBangCommand = new GoBangCommand(_someContent); await Bus.Send(_goBangCommand); await TimeSpan.FromSeconds(10).WaitUntil(() => MethodCallCounter.AllReceivedCalls.Count() >= _maxDeliveryAttempts); _deadLetterMessages = (await FetchAllDeadLetterMessages(Bus)).ToArray(); }