Пример #1
0
        public void AccountCreditOrWithdraw_WithdrawLessThanTotalAccountBalance_ReturnsTrue()
        {
            //Arrange
            bool      expected  = true;
            AccountDL accountDL = new AccountDL();
            //Act
            bool actual = accountDL.AccountCreditOrWithdraw(10000000061, 0);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void AccountHandle_ClosingUnknownCustomerAccount_ReturnsFalse()
        {
            //Arrange
            bool      expected  = false;
            AccountDL accountDL = new AccountDL();
            //Act
            bool actual = accountDL.AddAccount(999999999999999999, DateTime.Now, 1, 3);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Пример #3
0
        public void AccountCreditOrWithdraw_WithdrawMoreThanTotalAccountBalance_ReturnsFalse()
        {
            //Arrange
            bool      expected  = false;
            AccountDL accountDL = new AccountDL();
            //Act
            bool actual = accountDL.AccountCreditOrWithdraw(10000000113, 213123);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Пример #4
0
        public void AddAccount_OpeningLiabilityForExistingCustomerAccount_ReturnsTrue()
        {
            //Arrange
            bool      expected  = true;
            AccountDL accountDL = new AccountDL();
            //Act
            bool actual = accountDL.AddAccount(10000000113, DateTime.Now, 1, 3);

            //Assert
            Assert.AreEqual(expected, actual);
        }
 public IActionResult CreateUser(string conn, string username)
 {
     try
     {
         AccountDL objAccountDL = new AccountDL(_configuration); //call account data layer
         objAccountDL.CreateUser(conn, username);                //conn = "CON1"
         return(Ok());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }