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