public virtual void InitializeContext() { _context = _fixture.CreateContext(); _context.ChangeTracker.AutoDetectChangesEnabled = AutoDetectChanges; _customers = _fixture.CreateCustomers(5000, setPrimaryKeys: true); _ordersWithoutPk = _fixture.CreateOrders(_customers, ordersPerCustomer: 2, setPrimaryKeys: false); _ordersWithPk = _fixture.CreateOrders(_customers, ordersPerCustomer: 2, setPrimaryKeys: true); }
public virtual void CheckData() { _fixture = CreateFixture(); _fixture.Initialize(0, 5000, 2, 0); using (var context = _fixture.CreateContext()) { Assert.Equal(5000, context.Customers.Count()); Assert.Equal(10000, context.Orders.Count()); } }
public virtual void InitializeContext() { _context = _fixture.CreateContext(disableBatching: Batching); _transaction = _context.Database.BeginTransaction(); }
public virtual void InitializeContext() { _context = _fixture.CreateContext(); _context.ChangeTracker.AutoDetectChangesEnabled = AutoDetectChanges; }
public virtual void InitializeFixture() { _fixture = CreateFixture(); _fixture.Initialize(0, 1000, 0, 0); _context = _fixture.CreateContext(disableBatching: Batching); }