Ejemplo n.º 1
0
        public string InsertNewBankAccount(BankAccount newAcct, string transactionType)
        {
            _lib.InsertNewBankAccount(newAcct, transactionType);

            string result = "New User Login Record created Successfully";

            return(result);
        }
        public void TestInsertNewBankAccount()
        {
            BankAccount newAcct = GenerateBankAccount();

            _dataLib.InsertNewBankAccount(newAcct, "Create New Account");

            BankAccount dbAcct = _dataLib.GetBankAccountByAccountNumber(newAcct.AccountNumber);

            Assert.IsNotNull(dbAcct);
            Assert.AreEqual(newAcct.AccountNumber, dbAcct.AccountNumber);
            Assert.AreEqual(newAcct.LoginName, dbAcct.LoginName);
            Assert.AreEqual(newAcct.Password, dbAcct.Password);
            Assert.AreEqual(newAcct.Balance, dbAcct.Balance);
        }