Beispiel #1
0
 public GmapsClientFixture()
 {
     secretManager       = new UserSecretManager();
     gmapsApiKey         = secretManager.GetGmapsGeocodeApiKey();
     gmapsGeocodeClient  = new GmapsGeocodeClient(gmapsApiKey);
     testAddress         = "Av.Vallarta y Niño Obrero, por la cámara de comercio de Guadalajara.";
     geoCodeResponseTask = gmapsGeocodeClient.GetGeocodeForAddress(testAddress);
 }
Beispiel #2
0
 public TweetLocationService(ITweetDbRepository tweetDbRepository,
                             IAddressCleanService addressCleanService,
                             IGmapsGeocodeClient gmapsGeocodeClient,
                             IMapper mapper)
 {
     _tweetDbRepository   = tweetDbRepository;
     _addressCleanService = addressCleanService;
     _gmapsGeocodeClient  = gmapsGeocodeClient;
     _mapper = mapper;
 }
Beispiel #3
0
 public GMapsGeocodeClientTests(GmapsClientFixture fixture)
 {
     _gmapsGeoClient      = fixture.gmapsGeocodeClient;
     _testAddress         = fixture.testAddress;
     _geoCodeResponseTask = fixture.geoCodeResponseTask;
 }