public async void ThenThereIsANotificationAboutTheExpiredItem() { var createdItem = _scenarioContext["CreatedItem"] as ItemModel; using (RabbitMqNotificationBus bus = new RabbitMqNotificationBus()) { ItemExpired notification = new ItemExpired(new CallContext()); await bus.SubscribeAndWaitFirstMessage <ItemExpired>(a => { notification = a; }); notification.Should().BeOfType(typeof(ItemExpired)); notification.Label.Should().BeEquivalentTo(createdItem.Label); } }