コード例 #1
0
        public async Task Handle_WhenHandlingTransferRequestApprovedEvent_ThenShouldSendLegacyEventCohortApprovedByTransferSender()
        {
            var f = new TransferRequestApprovedEventHandlerTestsFixture().AddCohortToMemoryDb();
            await f.Handle();

            f.VerifyLegacyEventCohortApprovedByTransferSenderIsPublished();
        }
コード例 #2
0
        public void Handle_WhenHandlingTransferRequestApprovedEventAndItThrowsException_ThenWelogErrorAndRethrowError()
        {
            var f = new TransferRequestApprovedEventHandlerTestsFixture();

            Assert.ThrowsAsync <InvalidOperationException>(() => f.Handle());
            Assert.IsTrue(f.Logger.HasErrors);
        }
コード例 #3
0
        public async Task Handle_WhenHandlingTransferRequestApprovedEvent_ThenShouldFindCohortAndSetTransferApprovalProperties()
        {
            var f = new TransferRequestApprovedEventHandlerTestsFixture().AddCohortToMemoryDb();
            await f.Handle();

            f.VerifyCohortApprovalPropertiesAreSet();
        }