// Seeding  customers
        private void SeedCustomers(EasyStoreDbContext context)
        {
            var customers = new[]
            {
                new Customer {
                    Address   = new Address("Address 1", "Address 2", "Stockholm", "*****@*****.**", "Sweden", "14576"),
                    FirstName = "FirstName 1",
                    LastName  = "LastName 2",
                    Phone     = "0756353738"
                },
                new Customer {
                    Address   = new Address("Address 2", "Address 3", "Oslo", "*****@*****.**", "Norway", "14376"),
                    FirstName = "FirstName 2",
                    LastName  = "LastName 3",
                    Phone     = "0756353745"
                },
                new Customer {
                    Address   = new Address("Address 3", "Address 4", "Washington", "*****@*****.**", "USA", "198736"),
                    FirstName = "FirstName 4",
                    LastName  = "LastName 5",
                    Phone     = "0794587655"
                },
            };

            context.AddRange(customers);
            context.SaveChanges();
        }
        private void SeedProducts(EasyStoreDbContext context)
        {
            var products = new[]
            {
                new Product
                {
                    ProductName        = "Product1",
                    Price              = new Money(100),
                    ProductDescription = "Description of the product 1"
                },
                new Product
                {
                    ProductName        = "Product2",
                    Price              = new Money(200),
                    ProductDescription = "Description of the product 2"
                },
                new Product
                {
                    ProductName        = "Product3",
                    Price              = new Money(300),
                    ProductDescription = "Description of the product 3"
                },
                new Product
                {
                    ProductName        = "Product4",
                    Price              = new Money(400),
                    ProductDescription = "Description of the product 4"
                }
            };

            context.AddRange(products);
            context.SaveChanges();
        }
        private void SeedAll(EasyStoreDbContext context)
        {
            context.Database.EnsureCreated();

            if (context.Customers.Any())
            {
                // Db has been seeded
                return;
            }
            SeedCustomers(context);
            SeedProducts(context);
        }
        public static void Initialize(EasyStoreDbContext context)
        {
            var initialize = new EasyStoreDbInitializer();

            initialize.SeedAll(context);
        }