Exemplo n.º 1
0
 public async void Group_information_can_be_retrieved_through_the_meetup_api_client()
 {
     var meetupApiClient = new MeetupApiClient(_meetupSettings, _httpGetStringCommand);
     var groupInformation = await meetupApiClient.GetGroupInformation("nnug-trondheim");
     Assert.That(groupInformation, Is.Not.Null);
     Assert.That(groupInformation.Name, Is.EqualTo("NNUG Trondheim"));
 }
Exemplo n.º 2
0
        public async Task Group_information_can_be_retrieved_through_the_meetup_api_client()
        {
            var meetupApiClient  = new MeetupApiClient(_httpGetStringCommand);
            var groupInformation = await meetupApiClient.GetGroupInformation("nnug-trondheim");

            Assert.That(groupInformation, Is.Not.Null);
            Assert.That(groupInformation.Name, Is.EqualTo("NNUG Trondheim"));
        }
Exemplo n.º 3
0
        public async Task<MeetupGroup> LoadFromMeetupAsync()
        {
            var meetupApiClient = new MeetupApiClient(_meetupSettings, _httpGetStringCommand);
            try
            {
                var groupInformation = await meetupApiClient.GetGroupInformation(_meetupGroupUrl);
                groupInformation.UpcomingEvents = await meetupApiClient.GetEvents(_meetupGroupUrl);

                return groupInformation;
            }
            catch (HttpRequestException)
            {
                return null;
            }
        }
Exemplo n.º 4
0
        public async Task <MeetupGroup> LoadFromMeetupAsync()
        {
            var meetupApiClient = new MeetupApiClient(_httpGetStringCommand);

            try
            {
                var groupInformation = await meetupApiClient.GetGroupInformation(_meetupGroupUrl);

                groupInformation.UpcomingEvents = await meetupApiClient.GetEvents(_meetupGroupUrl);

                return(groupInformation);
            }
            catch (HttpRequestException)
            {
                return(null);
            }
        }