Exemple #1
0
        private static void CreateTable(ProductMaterial material, Color color, ProductSize size)
        {
            var factory = HomeAndKitchenFactory.GetConcreteFactory(material);
            var table   = factory.CreateTable(color, size);

            PrintProductDetails(table.Color, table.Material, table.Size);
        }
Exemple #2
0
        private static void CreateChair(ProductMaterial material, Color color, ProductSize size)
        {
            var factory = HomeAndKitchenFactory.GetConcreteFactory(material);
            var chair   = factory.CreateChair(color, size);

            PrintProductDetails(chair.Color, chair.Material, chair.Size);
        }