Beispiel #1
0
        public PictureExifInformationTests()
        {
            _cut          = new PictureExifInformationReader();
            _googleClient = new GoogleClient();
            _locationRepo = new LocationRepo(TripLineConfig.LocationRepoPath, forceNew: true);
            _placeRepo    = new PlaceRepo(TripLineConfig.PlaceRepoPath);

            _locationService = new LocationService(_googleClient, _locationRepo, _placeRepo);


            _localFileFolder = new LocalFileFolders(_cut);
        }
Beispiel #2
0
        public LocationServiceTests()
        {
            _exifReader = new PictureExifInformationReader();

            _googleClient = new GoogleClient();
            _locationRepo = new LocationRepo(TripLineConfig.LocationRepoPath, forceNew: false);
            _placeRepo    = new PlaceRepo(TripLineConfig.PlaceRepoPath);

            _locationService = new LocationService(_googleClient, _locationRepo, _placeRepo);

            _localFileFolder = new LocalFileFolders(_exifReader);
            _photoStore      = new PhotoStore(new PhotoRepo(forceNew: false), _localFileFolder, _locationService);
        }
Beispiel #3
0
        public TripCreationServiceTests()
        {
            _googleClient = new GoogleClient();
            _locationRepo = new LocationRepo(TripLineConfig.LocationRepoPath, forceNew: true);
            _placeRepo    = new PlaceRepo(TripLineConfig.PlaceRepoPath);

            _locationService = new LocationService(_googleClient, _locationRepo, _placeRepo);

            _pictureExifReader = new PictureExifInformationReader();
            _localFileFolder   = new LocalFileFolders(_pictureExifReader);
            _photoStore        = new PhotoStore(new PhotoRepo(), _localFileFolder, _locationService);

            _tripSmartBuilder = new TripSmartBuilder(_locationService, _photoStore, new DestinationBuilder(_locationService));
            _tripStore        = new TripStore(_photoStore, _locationService, _tripSmartBuilder, new TripsRepo());
        }
Beispiel #4
0
        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();
            }
        }