public void SetUp() { Database.SetInitializer(new DataSeedingInitializer()); context = new MyDbContext("DefaultDb"); customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository(context); repository = new Infrastructure.Data.EntityFramework.Lab.GenericRepository(context); }
public void SetUp() { DbContextManager.InitStorage(new SimpleDbContextStorage()); DbContextManager.Init("DefaultDb", new[] { "Infrastructure.Tests" }, true); customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository(); repository = new Infrastructure.Data.EntityFramework.Lab.GenericRepository(); }
public void SetUp() { DbContextBuilder<DbContext> builder = new DbContextBuilder<DbContext>("DefaultDb", new[] { "Infrastructure.Tests" }, true, true); context = builder.BuildDbContext(); customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository(context); repository = new Infrastructure.Data.EntityFramework.Lab.GenericRepository(context); }
public void SetUp() { DbContextBuilder <DbContext> builder = new DbContextBuilder <DbContext>("DefaultDb", new[] { "Infrastructure.Tests" }, true, true); context = builder.BuildDbContext(); customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository(context); repository = new Infrastructure.Data.EntityFramework.Lab.GenericRepository(context); }