public static RestrauntTaskerContext Create() { var options = new DbContextOptionsBuilder <RestrauntTaskerContext>() .UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()) .Options; var context = new RestrauntTaskerContext(options); RestrauntTaskerContextSeeder.Seed(context); return(context); }
public Repository(RestrauntTaskerContext context) =>
public static void RemoveContext(RestrauntTaskerContext context) { context.Database.EnsureCreated(); context.Dispose(); }
public UnitOfWork(RestrauntTaskerContext context) =>