public async Task Should_receive_using_the_first_consumer() { const string name = "Joe"; await InputQueueSendEndpoint.Send(new SimpleMessageClass(name)); SimpleConsumer lastConsumer = await SimpleConsumer.LastConsumer; lastConsumer.ShouldNotBe(null); SimpleMessageInterface last = await lastConsumer.Last; last.Name .ShouldBe(name); bool wasDisposed = await lastConsumer.Dependency.WasDisposed; wasDisposed .ShouldBe(true); //Dependency was not disposed"); lastConsumer.Dependency.SomethingDone .ShouldBe(true); //Dependency was disposed before consumer executed"); }