public PaymentTestFixture() { var options = new DbContextOptionsBuilder <PaymentDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .Options; Context = new PaymentDbContext(options); repo = PaymentContextFactory.Create(Context); }
public void Dispose() { PaymentContextFactory.Destroy(Context); }