8
我有以下條件什麼是測試RedirectToAction的最佳方式?
if (_ldapAuthentication.IsAuthenticated (Domain, login.username, login.PassWord))
{
_ldapAuthentication.LogOn (indexViewModel.UserName, false);
_authenticationService.LimpaTentativas (login.username);
return RedirectToAction ("Index", "Main");
}
是真實的,它重定向到另一個頁面..什麼是最好做一個測試?