Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.Net Core Spy
public class SpyAuthorize : IAuthorize {
public int checkAuthorizeWasCalled = 0;
public Boolean CheckAuthorize(string username, string password) {
checkAuthorizeWasCalled++;
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment