public void WhenVerifyingAccountInCorrectlyAccountStatusRemainsPendingActivation()
        {
            var paymentAccountService             = new DomainServices.PaymentAccountService(_ctx);
            var paymentAccountVerificationService = new DomainServices.PaymentAccountVerificationService(_ctx, _logger);
            var userId = Guid.NewGuid();

            double depositAmount1 = 0.34;
            double depositAmount2 = 0.15;

            var paymentAccount = paymentAccountService.AddPaymentAccount(userId.ToString(), "James Rhodes",
                                                                         "053000219", "1234123412", "Savings");

            paymentAccount.AccountStatus = Domain.AccountStatusType.PendingActivation;
            paymentAccountService.UpdatePaymentAccount(paymentAccount);

            _ctx.PaymentAccountVerifications.Add(new Domain.PaymentAccountVerification()
            {
                DepositAmount1          = depositAmount1,
                DepositAmount2          = depositAmount2,
                EstimatedSettlementDate = System.DateTime.Now,
                Id = Guid.NewGuid(),
                NumberOfFailures = 0,
                PaymentAccountId = paymentAccount.Id,
                Sent             = System.DateTime.Now,
                Status           = Domain.PaymentAccountVerificationStatus.Deliveried
            });

            _ctx.SaveChanges();

            var result = paymentAccountVerificationService.VerifyAccount(userId.ToString(), paymentAccount.Id.ToString(), 0.99, 0.01);

            Assert.AreEqual(paymentAccount.AccountStatus, Domain.AccountStatusType.PendingActivation);
        }
        public void WhenVerifyingAccountInCorrectlyVerificationServiceReturnsFalse()
        {
            var paymentAccountService = new DomainServices.PaymentAccountService(_ctx);
            var paymentAccountVerificationService = new DomainServices.PaymentAccountVerificationService(_ctx, _logger);
            var userId = Guid.NewGuid();

            double depositAmount1 = 0.34;
            double depositAmount2 = 0.15;

            var paymentAccount = paymentAccountService.AddPaymentAccount(userId.ToString(), "James Rhodes",
                "053000219", "1234123412", "Savings");

            paymentAccount.AccountStatus = Domain.AccountStatusType.PendingActivation;
            paymentAccountService.UpdatePaymentAccount(paymentAccount);

            _ctx.PaymentAccountVerifications.Add(new Domain.PaymentAccountVerification()
            {
                DepositAmount1 = depositAmount1,
                DepositAmount2 = depositAmount2,
                EstimatedSettlementDate = System.DateTime.Now,
                Id = Guid.NewGuid(),
                NumberOfFailures = 0,
                PaymentAccountId = paymentAccount.Id,
                Sent = System.DateTime.Now,
                Status = Domain.PaymentAccountVerificationStatus.Deliveried
            });

            _ctx.SaveChanges();

            var result = paymentAccountVerificationService.VerifyAccount(userId.ToString(), paymentAccount.Id.ToString(), 0.99, 0.01);

            Assert.AreEqual(false, result);
        }