static void Main() { IEnumerable<ProportionalPainter> painters = new ProportionalPainter[10]; IPainter fastestPainter = CompositePainterFactory.CreateFastestSelector(painters); IPainter groupOfPainters = CompositePainterFactory.CreateGroup(painters); }
static void Main(string[] args) { IEnumerable <ProportionalPainter> painters = new ProportionalPainter[10]; IPainter fastestPainter = CompositePainterFactories.CreateFastestSelector(painters); IPainter group = CompositePainterFactories.CombineProportional(painters); }
static void Main(string[] args) { IEnumerable <ProportionalPainter> painters = new ProportionalPainter[10]; IPainter painter = CompositePainterFactories.CreateCheapestSelector(painters); }
//private static IPainter FindCheapestPainter(double sqMeters, Painters painters) => // painters.GetAvailable().GetCheapestOne(sqMeters); //private static IPainter FindFastestPainter(double sqMeters, Painters painters) => // painters.GetAvailable().GetFastestOne(sqMeters); static void Main(string[] args) { IEnumerable <ProportionalPainter> painters = new ProportionalPainter[10]; IPainter painter = CompositePainterFactories.CombineProportional(painters); }