public UpdateGooglePlacesFunction(ShitFoodContext context, IDistributedCache cache)
     : base(context, cache)
 {
     TypeAdapterConfig <NearByResult, GooglePlacesPto>
     .NewConfig()
     .Ignore(x => x.PlaceId)
     .Map(dest => dest.Id, src => src.PlaceId)
     .Map(dest => dest.Latitude, src => src.Geometry.Location.Latitude)
     .Map(dest => dest.Longitude, src => src.Geometry.Location.Longitude);
 }
 public UpdateFoodHygieneRatingsFunction(ShitFoodContext context, IDistributedCache cache)
     : base(context, cache)
 {
     TypeAdapterConfig <Establishment, FoodHygieneRatingPto>
     .NewConfig()
     .Map(dest => dest.Hygiene, src => src.scores.Hygiene)
     .Map(dest => dest.Structural, src => src.scores.Structural)
     .Map(dest => dest.ConfidenceInManagement, src => src.scores.ConfidenceInManagement)
     .Map(dest => dest.Latitude, src => double.Parse(src.geocode.latitude))
     .Map(dest => dest.Longitude, src => double.Parse(src.geocode.longitude))
     .Map(dest => dest.Link, src => src.links.FirstOrDefault().href);
 }
 public UpdateSourceFunctionBase(ShitFoodContext context, IDistributedCache cache)
 {
     Context = context;
     _cache  = cache;
 }
 public UpdateTripAdvisorFunction(ShitFoodContext context, IDistributedCache cache) : base(context, cache)
 {
 }
 public GetShitFunction(ShitFoodContext context, IDistributedCache cache)
 {
     _context = context;
     _cache   = cache;
 }