private async Task <Dictionary <int, TotalVotes> > GetVoteData(string userId, int[] symbolIds) { var httpMessage = new HttpRequestMessage(HttpMethod.Get, ApiPath.GetVotes(symbolIds)); httpMessage.Headers.Add(TestAuthHandler.CustomUserIdHeader, userId); var fetchResponse = await _client.SendAsync(httpMessage); fetchResponse.EnsureSuccessStatusCode(); Dictionary <int, TotalVotes> voteData = await fetchResponse.Content.ReadAsAsync <Dictionary <int, TotalVotes> >(); return(voteData); }