public void GetUsersTest1() { DbUser target = new DbUser(); // TODO: Initialize to an appropriate value List <User> expected = null; // TODO: Initialize to an appropriate value List <User> actual; actual = target.GetUsers(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void CheckUser(string i_UserName, string i_Password) { var dbUser = new DbUser(); var users = dbUser.GetUsers(i_UserName); if (users.Count == 0) { throw new PmsUserNotFondException(i_UserName); } var u = users[0]; if (u.Password.Trim() != i_Password.Trim()) { throw new PmsIncorrectPasswordException(i_UserName); } Instance.CurrentUser = u; }