Skip to content

Instantly share code, notes, and snippets.

@ifew
Created July 5, 2018 09:57
Show Gist options
  • Save ifew/fde5216072837155fe34ae4042eecc0c to your computer and use it in GitHub Desktop.
Save ifew/fde5216072837155fe34ae4042eecc0c to your computer and use it in GitHub Desktop.
.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