Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 private async void AndACallToFetchAllSessions()
 {
     _httpHelper       = new ApiService.Helper.HttpHelper(_mockApiConfiguration.Object, _mockHttpClient.Object);
     _returnedSessions = await _httpHelper.FetchSessions();
 }