public FleetController()
        {
            this.dataService = null;
            appSettings      = new ConfigAppSettings();
            fileIOService    = new TextFileIOService(new ServerHostingEnvironmentService());
            dateTimeWrapper  = new SystemDateTime();
            HW_Mapper        = new HW_Mapper();

            this.dataService = new HW_DataService(appSettings, dateTimeWrapper, fileIOService, HW_Mapper);
        }
Example #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="HW_DataService" /> class.
 /// </summary>
 /// <param name="appSettings">The injected application settings service</param>
 /// <param name="dateTimeWrapper">The injected DateTime wrapper</param>
 /// <param name="fileIOService">The injected File IO Service</param>
 /// <param name="HW_Mapper">The injected Mapper</param>
 public HW_DataService(
     IAppSettings appSettings,
     IDateTime dateTimeWrapper,
     IFileIOService fileIOService,
     IHW_Mapper HW_Mapper)
 {
     this.appSettings     = appSettings;
     this.dateTimeWrapper = dateTimeWrapper;
     this.fileIOService   = fileIOService;
     this.HW_Mapper       = HW_Mapper;
 }