Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public Controller(IParameters parameters, CalculationFactory calculationFactory)
 {
     this.parameters         = parameters;
     this.calculationFactory = calculationFactory;
 }