Ejemplo n.º 1
0
        public async Task SignOut()
        {
            _authServiceMock.Setup(c => c.SignOutAsync(It.IsAny <HttpContext>(), It.IsAny <string>(), It.IsAny <AuthenticationProperties>()));
            await _cookieAuthService.SignOut();

            _authServiceMock.Verify(c => c.SignOutAsync(It.IsAny <HttpContext>(), It.IsAny <string>(), It.IsAny <AuthenticationProperties>()), Times.Once);
        }
 public IActionResult Logout()
 {
     _authenticationService.SignOut();
     return(RedirectToAction("Login"));
 }