private void CreateProducts()
        {
            var products = new InMemoryDbSet <Product>();

            CreateProduct(products, 1, "Spaghetti", 5m);

            CreateProduct(products, 2, "Lasagne", 10m);

            CreateProduct(products, 3, "Ravioli", 15m);

            _mockDatabase
            .Setup(p => p.Products)
            .Returns(products);

            _mockDatabase
            .Setup(p => p.Set <Product>())
            .Returns(products);
        }
        private void CreateCustomers()
        {
            var customers = new InMemoryDbSet <Customer>();

            CreateCustomer(customers, 1, "Martin Fowler");

            CreateCustomer(customers, 2, "Uncle Bob");

            CreateCustomer(customers, 3, "Kent Beck");

            _mockDatabase
            .Setup(p => p.Customers)
            .Returns(customers);

            _mockDatabase
            .Setup(p => p.Set <Customer>())
            .Returns(customers);
        }
        private void CreateEmployees()
        {
            var employees = new InMemoryDbSet <Employee>();

            CreateEmployee(employees, 1, "Eric Evans");

            CreateEmployee(employees, 2, "Greg Young");

            CreateEmployee(employees, 3, "Udi Dahan");

            _mockDatabase
            .Setup(p => p.Employees)
            .Returns(employees);

            _mockDatabase
            .Setup(p => p.Set <Employee>())
            .Returns(employees);
        }
        private void CreateSales()
        {
            var sales = new InMemoryDbSet <Sale>();

            CreateSale(sales, 1, 0, 1, 1, 1, 1);

            CreateSale(sales, 2, 1, 2, 2, 2, 2);

            CreateSale(sales, 3, 2, 3, 3, 3, 3);

            _mockDatabase
            .Setup(p => p.Sales)
            .Returns(sales);

            _mockDatabase
            .Setup(p => p.Set <Sale>())
            .Returns(sales);
        }