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); }
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); }