Пример #1
0
        public void AccountController_AdminLogin_Test02()
        {
            // Initialization
            AccountController ctl = new AccountController();
            LoginViewModel model = new LoginViewModel();
            string url = "http://getskills.azurewebsites.net/";

            // To test if it is null
            var result = ctl.AdminLogin(model, url);
            Assert.IsNotNull(result);
        }
Пример #2
0
        public void AccountController_Login_Test02()
        {
            // Initialization
            AccountController ctl = new AccountController();
            LoginViewModel model = new LoginViewModel();
            model.Email = "aaaa";
            model.Password = "******";
            model.RememberMe = false;
            string url = "http://getskills.azurewebsites.net/";

            // To test if it is null
            var result = ctl.Login(model, url);
            Assert.IsNotNull(result);
        }