BenBir RedirectToAction'ı test etmenin en iyi yolu nedir?
if (_ldapAuthentication.IsAuthenticated (Domain, login.username, login.PassWord))
{
_ldapAuthentication.LogOn (indexViewModel.UserName, false);
_authenticationService.LimpaTentativas (login.username);
return RedirectToAction ("Index", "Main");
}
gerçek olma aşağıdaki koşul, bu başka bir sayfaya yönlendiriyor var .. bir test yapmak için en iyi ne olurdu?