예제 #1
0
        public void CheckIfUserExists()
        {
            using (var bal = new UsersBal())
            {
                /* Uncomment the below 2 lines to pass this Test Method */
                this.model.UserName = "******";
                this.model.Password = "******";

                Users usersViewModel = bal.GetUser(this.model.UserName, this.model.Password);
                Assert.IsNotNull(this.model);
                Assert.IsNotNull(usersViewModel);
                Assert.AreEqual(this.model.UserName, usersViewModel.UserName);
            }
        }
예제 #2
0
        public void CheckIfBothUsernameAndPasswordEmpty()
        {
            using (var bal = new UsersBal())
            {
                /* Uncomment the below 2 lines to pass this Test Method */
                this.model.UserName = "******";
                this.model.Password = "******";

                Users usersViewModel = bal.GetUser(this.model.UserName, this.model.Password);
                Assert.IsTrue(
                    usersViewModel != null && !string.IsNullOrEmpty(this.model.UserName) &&
                    !string.IsNullOrEmpty(this.model.Password));
            }
        }