Exemplo n.º 1
0
        private static void BuildDependencies()
        {
            // Wiring up dependencies manually for this simple application.
            // Could use DI framework if this were more complex.

            _loggingService = new LoggingService();
            var seasonGoalsResultFactory = new SeasonGoalsResultFactory(_loggingService);

            _seasonGoalsResultFileParser = new SeasonResultFileParser("football.dat", seasonGoalsResultFactory, _loggingService);
        }
Exemplo n.º 2
0
        private static void BuildDependencies()
        {
            // Wiring up dependencies manually for this simple application.
            // Could use DI framework if this were more complex.

            _loggingService = new LoggingService();
            var temperatureFactory = new DailyTemperatureFactory(_loggingService);

            _dailyWeatherFileParser = new DailyWeatherFileParser("weather.dat", temperatureFactory, _loggingService);
        }
Exemplo n.º 3
0
 public IntDifferentiableService(IDifferentiableProvider <int> dataProvider, ILoggingService loggingService)
 {
     _dataProvider   = dataProvider;
     _loggingService = loggingService;
 }
Exemplo n.º 4
0
 public DailyWeatherService(IDifferentiableProvider <int> dailyWeatherProvider, ILoggingService loggingService)
     : base(dailyWeatherProvider, loggingService)
 {
 }
Exemplo n.º 5
0
 public SeasonResultService(IDifferentiableProvider <int> resultProvider, ILoggingService loggingService)
     : base(resultProvider, loggingService)
 {
 }