public static void Main() { IProgressionTypeValidation progressionTypeValidation = new ProgressionTypeValidation(); INumberValidation numberValidation = new NumberValidation(); IParameters commandLineParameters = new CommandLineParameters( progressionTypeValidation, numberValidation); CalculationFactory calculationFactory = new CalculationFactory(); Controller controller = new Controller(commandLineParameters, calculationFactory); controller.run(); }
public Controller(IParameters parameters, CalculationFactory calculationFactory) { this.parameters = parameters; this.calculationFactory = calculationFactory; }