Skip to content

Instantly share code, notes, and snippets.

@lukos
Created March 19, 2018 12:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lukos/2806a72898f56795d640a5cac150a295 to your computer and use it in GitHub Desktop.
Auth manager mock
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