Esempio n. 1
0
        public async Task AfterEveryTest()
        {
            if (Hearing != null && (Hearing.Status == BookingStatus.Created || Hearing.Status == BookingStatus.Booked))
            {
                await BookingApiClient.RemoveHearingAsync(Hearing.Id);

                Hearing = null;
            }

            if (!Hearings.IsNullOrEmpty())
            {
                foreach (var hearingId in Hearings.Select(x => x.GroupId).Distinct())
                {
                    if (hearingId != null)
                    {
                        await BookingApiClient.RemoveHearingAsync((Guid)hearingId);
                    }
                }

                Hearings.Clear();
            }
        }