public async Task <List <Product> > GetProductsAsync()
        {
            var url          = new Uri($"{ApiConfig.ResourceURLBase}{ApiConfig.ProductsURLAddress}");
            var responseBody = await _httpHelper.Client.GetStringAsync(url);

            return(ResourceApiSerializer.DeserializeFromString <List <Product> >(responseBody));
        }
        public async Task <double> GetMinimumTrolleyBalanceAsync(Trolley trolley)
        {
            var url          = new Uri($"{ApiConfig.ResourceURLBase}{ApiConfig.TrolleyURLAddress}");
            var json         = ResourceApiSerializer.SerializeToString(trolley);
            var httpResponse = await _httpHelper.Client.PostAsync(url,
                                                                  new StringContent(json, Encoding.UTF8, "application/json"));

            httpResponse.EnsureSuccessStatusCode();

            if (httpResponse.IsSuccessStatusCode)
            {
                var responseString = await httpResponse.Content.ReadAsStringAsync();

                return(ResourceApiSerializer.DeserializeFromString <double>(responseString));
            }

            return(0);
        }