public static FixtureLoader DropCreateDatabaseDoNotEnsureLocalDB <TContext>(TContext context) where TContext : DbContext { context.Database.Delete(); context.Database.Create(); var loader = new FixtureLoader(); loader.RegisterService <DbContext>(context); loader.RegisterService <TContext>(context); return(loader); }
public void MyTestCleanup() { loader = null; }
public FixtureInitializer(Strategy strategy = Strategy.DropCreateDatabaseAlways) { strat = strategy; loader = new FixtureLoader(); }
public void MyTestInitialize() { loader = new FixtureLoader(); }