public async Task <IEnumerable <Speaker> > GetAllSpeakersWithSessions() { var fetchSpeakers = _httpHelper.FetchSpeakers(); var fetchSessions = _httpHelper.FetchSessions(); await Task.WhenAll(fetchSpeakers, fetchSessions); return(fetchSpeakers.Result.CombineWith(fetchSessions.Result)); }
private async void AndACallToFetchAllSessions() { _httpHelper = new ApiService.Helper.HttpHelper(_mockApiConfiguration.Object, _mockHttpClient.Object); _returnedSessions = await _httpHelper.FetchSessions(); }