public HighliteTests() { ServiceBootStrapper.Configure(); _googleClient = new GoogleClient(); _locationRepo = new LocationRepo(TripLineConfig.LocationRepoPath); _placeRepo = new PlaceRepo(TripLineConfig.PlaceRepoPath); _locationService = new LocationService(_googleClient, _locationRepo, _placeRepo); _pictureExifReader = new PictureExifInformationReader(); _localFileFolder = new LocalFileFolders(_pictureExifReader); _photoStore = new PhotoStore(new PhotoRepo(forceNew: false), _localFileFolder, _locationService); _tripSmartBuilder = new TripSmartBuilder(_locationService, _photoStore, new DestinationBuilder(_locationService)); _tripStore = new TripStore(_photoStore, _locationService, _tripSmartBuilder, new TripsRepo(forceNew: false)); _highliteService = new HighliteService(_photoStore, _tripStore, _locationService); var tripCreationService = new TripCreationService(_tripStore, _photoStore, _locationService); var result = tripCreationService.Build(); if (result.NumNewTrips > 0) { tripCreationService.AddAll(); } }
protected override void OnStart(string[] args) { bs = new ServiceBootStrapper(); bs.Main(); }