我有以下情况
if (_ldapAuthentication.IsAuthenticated (Domain, login.username, login.PassWord))
{
_ldapAuthentication.LogOn (indexViewModel.UserName, false);
_authenticationService.LimpaTentativas (login.username);
return RedirectToAction ("Index", "Main");
}
Run Code Online (Sandbox Code Playgroud)
如果是真的,它会重定向到另一个页面..最好做一个测试?
我在注册表单中进行单元测试,我不能在FormCollection中输入值...因为当你有表单集合时它必须做这个测试吗?
asp.net-mvc ×2