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