Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
.Net Core 2 Mock
public class MockAuthorize : IAuthorize {
public Boolean checkAuthorizeWasCalled = false;
public Boolean CheckAuthorize(string username, string password) {
checkAuthorizeWasCalled = true;
return true;
public Boolean VerifyCheckAuthorize(){
return checkAuthorizeWasCalled;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.