public IChair GetChair(CommonEnums.ChairTypes c) { if (c == CommonEnums.ChairTypes.Folding) { return(new FoldingChairs()); } else if (c == CommonEnums.ChairTypes.Wing) { return(new WingChairs()); } else { return(null); } }
public IChair GetChair(CommonEnums.ChairTypes c) { if (c == CommonEnums.ChairTypes.Club) { return(new ClubChairs()); } else if (c == CommonEnums.ChairTypes.Rocking) { return(new RockingChairs()); } else { return(null); } }
public ShopClient(IShop s, CommonEnums.ChairTypes cTypes, CommonEnums.SofaTypes sTypes) { chair = s.GetChair(cTypes); sofa = s.GetSofa(sTypes); }