Skip to content

Instantly share code, notes, and snippets.

@richarth
Created October 29, 2019 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richarth/d774a8028bcfd462f8b0d3365e5748b2 to your computer and use it in GitHub Desktop.
Save richarth/d774a8028bcfd462f8b0d3365e5748b2 to your computer and use it in GitHub Desktop.
Cut down demo of a base class for our xUnit tests
using UCommerce.EntitiesV2;
using Xunit.Abstractions;
namespace Website.Tests
{
public class TestBase : XunitApprovalBase
{
protected TestBase(ITestOutputHelper output)
: base(output)
{
RetailCustomer = GenerateMockCustomer();
}
protected Customer RetailCustomer { get; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment