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); }
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); }