AdminLogin() private method

private AdminLogin ( string returnUrl ) : System.Web.Mvc.ActionResult
returnUrl string
return System.Web.Mvc.ActionResult
コード例 #1
0
        public void AccountController_AdminLogin_Test01()
        {
            // Initialization
            AccountController ctl = new AccountController();
            string url = "http://getskills.azurewebsites.net/";

            // To test if it is null
            ViewResult result = ctl.AdminLogin(url) as ViewResult;
            Assert.IsNotNull(result);
        }
コード例 #2
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);
        }