Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

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