public void GotBackToLogin_returns_login_view() { //Arrange var controller = new PasswordController(_bosAuthClient); //Act var result = controller.GotBackToLogin(); //Assert var redirectResult = Assert.IsType <RedirectToActionResult>(result); //Asserting that the return is a View Assert.Equal("Auth", redirectResult.ControllerName); //Asseting that the returned Controller is "Auth" Assert.Equal("Index", redirectResult.ActionName); //Asseting that the Action Methond of the controller is "Index" }
public void GotBackToLogin_returns_login_view() { //Arrange var controller = new PasswordController(_configuration, multitenantService, _contextAccessor); //Act var result = controller.GotBackToLogin(); //Assert var redirectResult = Assert.IsType <RedirectToActionResult>(result); //Asserting that the return is a View Assert.Equal("Auth", redirectResult.ControllerName); //Asserting that the returned Controller is "Auth" Assert.Equal("Index", redirectResult.ActionName); //Asserting that the Action Methond of the controller is "Index" }