Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #3
0
 public IntDifferentiableService(IDifferentiableProvider <int> dataProvider, ILoggingService loggingService)
 {
     _dataProvider   = dataProvider;
     _loggingService = loggingService;
 }
Beispiel #4
0
 public DailyWeatherService(IDifferentiableProvider <int> dailyWeatherProvider, ILoggingService loggingService)
     : base(dailyWeatherProvider, loggingService)
 {
 }
 public SeasonResultService(IDifferentiableProvider <int> resultProvider, ILoggingService loggingService)
     : base(resultProvider, loggingService)
 {
 }