public AppDemoDataFixture() { var options = new DbContextOptionsBuilder <AppDemoContext>() .UseInMemoryDatabase("AppDemoInMemoryContext") .Options; InMemoryDbContext = new AppDemoContext(options); InMemoryDbContext.Database.EnsureDeleted(); InMemoryDbContext.Database.EnsureCreated(); InMemoryDbContext.SaveChanges(); }
public ContactService(AppDemoContext context) : base(context) { }
public Repository(AppDemoContext context) { _context = context; }