Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.Net Core 2 Stub Test
using System;
using Xunit;
namespace member_stub
{
public class MemberTest
{
[Fact]
public void When_Member_Access_to_Profile() {
Member member = new Member(new StubAuthorize());
string is_authorized = member.Profile();
Assert.Equal("Welcome to member area", is_authorized);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment