public static Task <Distance> GetDistance(this IGoogleDirectionsRepository repository, GeoLocation origin, AddressLocation destination) => repository.GetDistance(GetParameter(origin), GetParameter(destination));
public CachedGoogleDirectionsRepository(IGoogleDirectionsRepository baseApi, string cachePath) { _baseApi = baseApi ?? throw new ArgumentNullException(nameof(baseApi)); _cachePath = cachePath ?? throw new ArgumentNullException(nameof(cachePath)); }