public RepairsController(ILoggerAdapter <RepairsActions> loggerAdapter, IUhtRepository uhtRepository, IUhwRepository uhwRepository) { var factory = new HackneyRepairsServiceFactory(); _configBuilder = new HackneyConfigurationBuilder((Hashtable)Environment.GetEnvironmentVariables(), ConfigurationManager.AppSettings); _repairsService = factory.build(uhtRepository, uhwRepository, loggerAdapter); _requestBuilder = new HackneyRepairsServiceRequestBuilder(_configBuilder.getConfiguration()); _repairRequestValidator = new RepairRequestValidator(); _loggerAdapter = loggerAdapter; }
public PropertiesController(ILoggerAdapter <PropertyActions> loggerAdapter, IUhtRepository uhtRepository) { HackneyPropertyServiceFactory factory = new HackneyPropertyServiceFactory(); _configBuilder = new HackneyConfigurationBuilder((Hashtable)Environment.GetEnvironmentVariables(), ConfigurationManager.AppSettings); _propertyService = factory.build(uhtRepository, loggerAdapter); _propertyServiceRequestBuilder = new HackneyPropertyServiceRequestBuilder(_configBuilder.getConfiguration(), new PostcodeFormatter()); _postcodeValidator = new PostcodeValidator(); _loggerAdapter = loggerAdapter; }
public AppointmentsController(ILoggerAdapter <AppointmentActions> loggerAdapter, IUhtRepository uhtRepository, IUhwRepository uhwRepository, ILoggerAdapter <HackneyAppointmentsServiceRequestBuilder> requestBuildLoggerAdapter, ILoggerAdapter <RepairsActions> repairsLoggerAdapter) { var serviceFactory = new HackneyAppointmentServiceFactory(); _configBuilder = new HackneyConfigurationBuilder((Hashtable)Environment.GetEnvironmentVariables(), ConfigurationManager.AppSettings); _appointmentsService = serviceFactory.build(loggerAdapter); var factory = new HackneyRepairsServiceFactory(); _repairsService = factory.build(uhtRepository, uhwRepository, repairsLoggerAdapter); _loggerAdapter = loggerAdapter; _serviceRequestBuilder = new HackneyAppointmentsServiceRequestBuilder(_configBuilder.getConfiguration(), requestBuildLoggerAdapter); _scheduleBookingRequestValidator = new ScheduleBookingRequestValidator(_repairsService); _repairsServiceRequestBuilder = new HackneyRepairsServiceRequestBuilder(_configBuilder.getConfiguration()); }