public void HomeAbout() { ViewResult result = _controller.About() as ViewResult; Assert.AreEqual("Your application description page.", result.ViewBag.Message); ControllerHelper.AssertController(result, _controller); }
public void AccountForgotPasswordPost() { var result = _controller.ForgotPassword(new UserForgotPasswordViewModel() { Email = "*****@*****.**" }); ControllerHelper.AssertController(result, _controller); }
public void AccountRegisterPost() { var result = _controller.Register(new ViewModels.Account.RegisterViewModel() { Username = "", Password = "******", ConfirmPassword = "******", Email = "*****@*****.**" }); ControllerHelper.AssertController(result, _controller); }
public void AccountLoginPost() { var result = _controller.Login(new LoginViewModel() { UserName = "******", Password = "******" }, null); ControllerHelper.AssertController(result, _controller); //Need to be able to login using e-mail address as well as username result = _controller.Login(new LoginViewModel() { UserName = "******", Password = "******" }, null); ControllerHelper.AssertController(result, _controller); }
public void HomeContact() { ViewResult result = _controller.Contact() as ViewResult; ControllerHelper.AssertController(result, _controller); }
public void HomeIndex() { ViewResult result = _controller.Index() as ViewResult; ControllerHelper.AssertController(result, _controller); }
public void AccountForgotPassword() { var result = _controller.ForgotPassword(); ControllerHelper.AssertController(result, _controller); }
public void AccountLogin() { ViewResult result = _controller.Login("test") as ViewResult; ControllerHelper.AssertController(result, _controller); }
public void AccountRegister() { ViewResult result = _controller.Register() as ViewResult; ControllerHelper.AssertController(result, _controller); }