Пример #1
0
        public void TestGetUser_ByUsernameAndPassword()
        {
            UsersSqlDAL dal  = new UsersSqlDAL();
            UserModel   user = dal.GetUser("username", "Happy10th!");

            Assert.IsNotNull(user);
            Assert.AreEqual(userID, user.UserID);
            Assert.AreEqual(true, user.IsAdmin);
        }
Пример #2
0
        public void TestGetUser_ByUsername()
        {
            UsersSqlDAL dal  = new UsersSqlDAL();
            UserModel   user = dal.GetUser("username");

            Assert.IsNotNull(user);
            Assert.AreEqual(true, user.IsAdmin);
            Assert.AreEqual("rht23o451309", user.Salt);
            Assert.AreEqual(userID, user.UserID);
        }