public void ShouldBeTrue() { this.bus.Consume(this.InitializedIntegrationQueue, HandleMessageAsync); var waitCount = 0; while (waitCount < 5) { if (this.messageReceived != null) { break; } Thread.Sleep(TimeSpan.FromSeconds(5)); waitCount++; } messageReceived.Should().NotBeNull(); messageReceived.Message.Should().BeEquivalentTo($"{EntryMessageIntegrationTest}-EntryPointProcessed-"); }