public async Task Save_PaymentFullyReceived_SetsReceivedDate()
        {
            var transactionDate = new DateTime(2018, 1, 1);

            A.CallTo(() => importNotificationTransactionCalculator.Balance(notificationId))
            .Returns(1000);
            A.CallTo(() => importNotificationTransactionRepository.GetTransactions(notificationId))
            .Returns(new List <ImportNotificationTransaction>()
            {
                CreateNotificationTransaction(1000, transactionDate)
            });

            await transaction.Save(notificationId, transactionDate, 1000, PaymentMethod.Card, null, null);

            Assert.Equal(assessment.Dates.PaymentReceivedDate, transactionDate);
        }
        public async Task <bool> HandleAsync(AddNotificationPayment message)
        {
            await
            importPaymentTransaction.Save(message.ImportNotificationId, message.Date, message.Amount,
                                          message.PaymentMethod, message.ReceiptNumber, message.Comments);

            await context.SaveChangesAsync();

            return(false);
        }