public ICupsManager GetCupsManager(int cupsSize) { ICupsManager cupsSizes = null; if (cupsSize == 1) { return(cupsSizes = new SmallCupManager()); } else if (cupsSize == 2) { return(cupsSizes = new MeduimCupManager()); } return(cupsSizes); }
public override ICupsManager Create() { var meduimCups = new MeduimCupManager(); return(meduimCups); }