Exemplo n.º 1
0
        private void ClearHearingsForUser(TestApiManager api)
        {
            var response = api.GetHearingsByUsername(_username);
            var hearings = RequestHelper.Deserialise <List <HearingDetailsResponse> >(response.Content);

            if (hearings == null)
            {
                return;
            }
            foreach (var hearing in hearings)
            {
                DeleteTheHearing(api, hearing.Id);
            }
        }
Exemplo n.º 2
0
        private void ClearHearingsForUser(TestApiManager api)
        {
            var response = api.GetHearingsByUsername(_username);
            var hearings = RequestHelper.Deserialise <List <HearingDetailsResponse> >(response.Content);

            if (hearings == null)
            {
                return;
            }

            var ids = hearings.Select(x => x.GroupId).Distinct().ToList();

            foreach (var id in ids.Where(x => x.HasValue))
            {
                DeleteTheHearing(api, id.Value);
            }
        }