public static void InitDb(IDbContext dbContext) { dbContext.Shipments.AddRange(ShipmentFactory.GetShipments()); dbContext.Users.Add(UserFactory.CreateUser()); dbContext.CharmCategories.AddRange(CharmCategoryFactory.GetCharmCategoriesWithCharms(3, 2)); dbContext.Products.AddRange(ProductFactory.GetNonCharmProducts(3)); dbContext.SaveChanges(); }