Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.Net Core 2 Test Doubles
using System;
namespace member_dummy
{
public class Member
{
Boolean authorized;
public Member(IAuthorize authorize) {
this.authorized = authorize.CheckAuthorize("ifew", "1234");
}
public string Profile() {
if(this.authorized)
return "Welcome to member area";
return "This not member area";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment