Created
March 19, 2018 12:30
-
-
Save lukos/2806a72898f56795d640a5cac150a295 to your computer and use it in GitHub Desktop.
Auth manager mock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var authManager = new Mock<IAuthenticationService>(); | |
authManager.Setup(s => s.SignOutAsync(It.IsAny<HttpContext>(), | |
CookieAuthenticationDefaults.AuthenticationScheme, | |
It.IsAny<Microsoft.AspNetCore.Authentication.AuthenticationProperties>())). | |
Returns(Task.FromResult(true)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment