Beispiel #1
0
        public void CreateAccountSuccessTest()
        {
            Logic = new UserLogic(AccountAccess);
            AccountDTO Account = new AccountDTO(1, "*****@*****.**", "John", "Test234");

            Logic.CreateAccount(Account);
            AccountDTO result = AccountAccess.GetLatestEntry();

            Assert.IsTrue(result == Account);
            if (AccountAccess.GetType() == typeof(DAL.Access.AccountAccess))
            {
                AccountAccess.Delete(result.Id);
            }
        }