Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
.Net Core 2 Stub Test
using System;
using Xunit;
namespace member_stub
public class MemberTest
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
You can’t perform that action at this time.