public void Case3() { AbstractOrInterfaceOfCreator creator1 = new GenericConcreteCreator <ConcreteGoodProduct>(); AbstractOrInterfaceOfCreator creator2 = new GenericConcreteCreator <ConcreteBadProduct>(); AbstractOrInterfaceOfProduct product1 = creator1.CreateProduct(); AbstractOrInterfaceOfProduct product2 = creator2.CreateProduct(); }
public void Case1() { AbstractOrInterfaceOfCreator creator = new ConcreteCreator(); AbstractOrInterfaceOfProduct product = creator.CreateProduct(); }
public void Case3() { ConcreteCreator creator = new ConcreteCreator(); AbstractOrInterfaceOfProduct product = creator.CreateProduct(ProductCategory.GoodProduct); }