private static void GenertateEFData() { if (_context == null) { _context = new BillingCustomerContextTest(); if (!_context.Customers.Any()) { foreach (var customer in InMemoryCustomers) { _context.Customers.Add(customer); } foreach (var billing in InMemoryBillings) { _context.Billings.Add(billing); } _context.SaveChanges(); } } }
private static void GenertateEFData() { if (_context == null) { _context = new BillingCustomerContextTest(); if (!_context.Customers.Any()) { foreach (var customer in InMemoryCustomers) { _context.Customers.Add(customer); } foreach (var billing in InMemoryBillings) { _context.Billings.Add(billing); } _context.SaveChanges(); } } }