Skip to content

Instantly share code, notes, and snippets.

@ifew
Created July 5, 2018 08:21
Show Gist options
  • Save ifew/a5c31b52c3488e5c65d97cef13d78e48 to your computer and use it in GitHub Desktop.
Save ifew/a5c31b52c3488e5c65d97cef13d78e48 to your computer and use it in GitHub Desktop.
.Net Core 2 Dummy
using System;
namespace member_dummy
{
public interface IAuthorize
{
Boolean CheckAuthorize(string username, string password);
}
public class Authorize : IAuthorize {
public Boolean CheckAuthorize(string username, string password) {
if(username == "ifew" && password == "1234")
return true;
return false;
}
}
public class DummyAuthorize : IAuthorize {
public Boolean CheckAuthorize(string username, string password) {
return new bool();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment