Example #1
0
        public void CheckEmailTakenTest()
        {
            //arrange
            IAccountContext context = new TestDateContext();
            AccountLogic    logic   = new AccountLogic();
            string          email   = "*****@*****.**";

            //act
            bool checkAccountTaken = logic.CheckAccountTaken(context, email);

            //assert
            Assert.IsTrue(checkAccountTaken);
        }
Example #2
0
        public void CheckLoginTest()
        {
            //arrange
            IAccountContext context  = new TestDateContext();
            AccountLogic    logic    = new AccountLogic();
            string          email    = "*****@*****.**";
            string          password = "******";

            //act
            bool checklogin = logic.CheckLogin(context, email, password);

            //assert
            Assert.IsTrue(checklogin);
        }