Skip to content

Instantly share code, notes, and snippets.

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