Ejemplo n.º 1
0
        public void Loginwithwrongusername()
        {
            int expected = 0;

            string username = "******";
            string password = "******";
            CommonBO rbo = new CommonBO();
            LoginBAL rbal = new LoginBAL();
            LoginDAL rDAL = new LoginDAL();

            rbo.username = username;
            rbo.password = password;

            int Actual = rDAL.validate_user(rbo);

            Assert.AreEqual(expected, Actual);
        }
Ejemplo n.º 2
0
        public void Loginofexistinguser()
        {
            int expected = 1;

            string username = "******";
            string password = "******";
            CommonBO rbo = new CommonBO();
            //    RegistrationBAL rbal = new RegistrationBAL();
            LoginBAL rbal = new LoginBAL();
            LoginDAL rDAL = new LoginDAL();

            rbo.username = username;
            rbo.password = password;

            int Actual = rDAL.validate_user(rbo);

            Assert.AreEqual(expected, Actual);
        }