Ejemplo n.º 1
0
 /// <summary>
 /// Get mocked API client (with enteprrise credentials)
 /// </summary>
 /// <param name="clientId">Client Id</param>
 /// <param name="clientSecret">Client secret</param>
 /// <param name="clientConfig">Client config</param>
 /// <returns>Client</returns>
 public IMapsAPIClient GetMockedAPIClient(string clientId, string clientSecret, MapsAPIClientConfig clientConfig = null)
 {
     return(MockRepository.GenerateMock <MapsAPIClient>(clientId, clientSecret, clientConfig ?? MapsAPIClientConfig.Default()));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get mocked API client (with API key)
 /// </summary>
 /// <param name="apiKey">API key</param>
 /// <param name="clientConfig">Client config</param>
 /// <returns>Client</returns>
 public IMapsAPIClient GetMockedAPIClient(string apiKey = TestsStaticConfiguration.GoogleMapsAPIKey, MapsAPIClientConfig clientConfig = null)
 {
     return(MockRepository.GenerateMock <MapsAPIClient>(apiKey, clientConfig ?? MapsAPIClientConfig.Default()));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Get API client (with enteprrise credentials)
 /// </summary>
 /// <param name="clientId">Client Id</param>
 /// <param name="clientSecret">Client secret</param>
 /// <param name="clientConfig">Client config</param>
 /// <returns>Client</returns>
 public IMapsAPIClient GetAPIClient(string clientId, string clientSecret, MapsAPIClientConfig clientConfig = null)
 {
     return(new MapsAPIClient(clientId, clientSecret, clientConfig ?? MapsAPIClientConfig.Default()));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Get API client (with API key)
 /// </summary>
 /// <param name="apiKey">API key</param>
 /// <param name="clientConfig">Client config</param>
 /// <returns>Client</returns>
 public IMapsAPIClient GetAPIClient(string apiKey = TestsStaticConfiguration.GoogleMapsAPIKey, MapsAPIClientConfig clientConfig = null)
 {
     return(new MapsAPIClient(apiKey, clientConfig ?? MapsAPIClientConfig.Default()));
 }