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

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

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

            f.VerifyCohortApprovalPropertiesAreSet();
        }