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