Beispiel #1
0
        public List <ProductGroup> ProductGroupFill()
        {
            ProductGroup objectProductGroup1 = new ProductGroup()
            {
                ID   = 1,
                Name = "Dairy"
            };

            ProductGroup objectProductGroup2 = new ProductGroup()
            {
                ID   = 2,
                Name = "Fruits"
            };

            ProductGroup objectProductGroup3 = new ProductGroup()
            {
                ID   = 3,
                Name = "Instant-Food"
            };

            ProductGroup objectProductGroup4 = new ProductGroup()
            {
                ID   = 4,
                Name = "Sweet"
            };

            List <ProductGroup> productGroup = new List <ProductGroup>(4);

            productGroup.Add(objectProductGroup1);
            productGroup.Add(objectProductGroup2);
            productGroup.Add(objectProductGroup3);
            productGroup.Add(objectProductGroup4);

            return(productGroup);
        }