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

            f.VerifyLegacyEventCohortApprovedByTransferSenderIsPublished();
        }
Exemple #2
0
        public void Handle_WhenHandlingTransferRequestApprovedEventAndItThrowsException_ThenWelogErrorAndRethrowError()
        {
            var f = new TransferRequestApprovedEventHandlerTestsFixture();

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

            f.VerifyCohortApprovalPropertiesAreSet();
        }