Example #1
0
 public StoreClient(IClothsFactory clothsFactory, string type)
 {
     jeans = clothsFactory.GetJeans(type);
     shirt = clothsFactory.GetShirt(type);
 }
Example #2
0
 public Cient(IClothesFactory factory)
 {
     _shirt    = factory.CreateShirt();
     _trousers = factory.CreateTrousers();
 }
 public AbstractFactoryDP(IClothesFactory factory)
 {
     _shirt    = factory.CreateShirt();
     _trousers = factory.CreateTrousers();
 }