public async Task Handle_WhenCohortDeletedEventIsRaisedAndProviderHasApprovedIt_ThenShouldRelayMessageToAzureServiceBus(Party approvedBy) { var f = new CohortDeletedHandlerTestsFixture().WithCohortDeletedEvent(approvedBy); await f.Handle(); f.VerifyPropertiesAreMappedCorrectlyWhenRelayingMessage(); }
public async Task Handle_WhenCohortDeletedEventIsRaisedAndProviderHasNotApprovedIt_ThenShouldRelayAnyMessagesToAzureServiceBus(Party approvedBy) { var f = new CohortDeletedHandlerTestsFixture().WithCohortDeletedEvent(approvedBy); await f.Handle(); f.VerifyNoRelayingMessageIsSent(); }