public async Task GivenSearchRequest_StudySeriesInstancesLevel_MatchResult() { DicomDataset matchInstance = await PostDicomFileAsync(); var studyId = matchInstance.GetSingleValue <string>(DicomTag.StudyInstanceUID); var seriesId = matchInstance.GetSingleValue <string>(DicomTag.SeriesInstanceUID); var instanceId = matchInstance.GetSingleValue <string>(DicomTag.SOPInstanceUID); await PostDicomFileAsync(new DicomDataset() { { DicomTag.StudyInstanceUID, studyId }, { DicomTag.SeriesInstanceUID, seriesId }, }); using DicomWebAsyncEnumerableResponse <DicomDataset> response = await _client.QueryStudySeriesInstanceAsync(studyId, seriesId, $"SOPInstanceUID={instanceId}"); Assert.Equal(KnownContentTypes.ApplicationDicomJson, response.ContentHeaders.ContentType.MediaType); DicomDataset[] datasets = await response.ToArrayAsync(); Assert.Single(datasets); ValidationHelpers.ValidateResponseDataset(QueryResource.StudySeriesInstances, matchInstance, datasets[0]); }