コード例 #1
0
        public async Task Handle_WhenCohortDeletedEventIsRaisedAndProviderHasApprovedIt_ThenShouldRelayMessageToAzureServiceBus(Party approvedBy)
        {
            var f = new CohortDeletedHandlerTestsFixture().WithCohortDeletedEvent(approvedBy);
            await f.Handle();

            f.VerifyPropertiesAreMappedCorrectlyWhenRelayingMessage();
        }
コード例 #2
0
        public async Task Handle_WhenCohortDeletedEventIsRaisedAndProviderHasNotApprovedIt_ThenShouldRelayAnyMessagesToAzureServiceBus(Party approvedBy)
        {
            var f = new CohortDeletedHandlerTestsFixture().WithCohortDeletedEvent(approvedBy);
            await f.Handle();

            f.VerifyNoRelayingMessageIsSent();
        }