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); }
public TweetLocationService(ITweetDbRepository tweetDbRepository, IAddressCleanService addressCleanService, IGmapsGeocodeClient gmapsGeocodeClient, IMapper mapper) { _tweetDbRepository = tweetDbRepository; _addressCleanService = addressCleanService; _gmapsGeocodeClient = gmapsGeocodeClient; _mapper = mapper; }
public GMapsGeocodeClientTests(GmapsClientFixture fixture) { _gmapsGeoClient = fixture.gmapsGeocodeClient; _testAddress = fixture.testAddress; _geoCodeResponseTask = fixture.geoCodeResponseTask; }