public Sticker CreateSticker(EOriginCountry eOriginCountry) { Sticker sticker = null; switch (eOriginCountry) { case EOriginCountry.Poland: sticker = new PolandFactory().CreateSticker(); break; case EOriginCountry.China: sticker = new ChinaFactory().CreateSticker(); break; case EOriginCountry.Germany: sticker = new GermanyFactory().CreateSticker(); break; default: throw new ArgumentOutOfRangeException(nameof(eOriginCountry), eOriginCountry, null); } return(sticker); }
public Motherboard CreateMotherBoard(EOriginCountry eOriginCountry) { Motherboard motherboard = null; switch (eOriginCountry) { case EOriginCountry.Poland: motherboard = new PolandFactory().CreateMotherBoard(); break; case EOriginCountry.China: motherboard = new ChinaFactory().CreateMotherBoard(); break; case EOriginCountry.Germany: motherboard = new GermanyFactory().CreateMotherBoard(); break; default: throw new ArgumentOutOfRangeException(nameof(eOriginCountry), eOriginCountry, null); } return(motherboard); }
public Gpu CreateGpu(EOriginCountry eOriginCountry) { Gpu gpu = null; switch (eOriginCountry) { case EOriginCountry.Poland: gpu = new PolandFactory().CreateGpu(); break; case EOriginCountry.China: gpu = new ChinaFactory().CreateGpu(); break; case EOriginCountry.Germany: gpu = new GermanyFactory().CreateGpu(); break; default: throw new ArgumentOutOfRangeException(nameof(eOriginCountry), eOriginCountry, null); } return(gpu); }