コード例 #1
0
 public async Task GivenAnExportByResourceTypeRequest_WhenResourceTypeIsNotPatient_ThenRequestNotValidExceptionShouldBeThrown()
 {
     await Assert.ThrowsAsync <RequestNotValidException>(() => _exportEnabledController.ExportResourceType(
                                                             typeFilter: null,
                                                             since: null,
                                                             resourceType: null,
                                                             containerName: null,
                                                             formatName: null,
                                                             anonymizationConfigLocation: null,
                                                             anonymizationConfigFileETag: null,
                                                             typeParameter: ResourceType.Observation.ToString()));
 }
コード例 #2
0
 public async Task GivenAnExportByResourceTypeRequest_WhenResourceTypeIsNotPatient_ThenRequestNotValidExceptionShouldBeThrown()
 {
     await Assert.ThrowsAsync <RequestNotValidException>(() => _exportEnabledController.ExportResourceType(null, null, null, ResourceType.Observation.ToString()));
 }
コード例 #3
0
 public void GivenAnExportByResourceTypeRequest_WhenResourceTypeIsNotPatient_ThenRequestNotValidExceptionShouldBeThrown()
 {
     Assert.Throws <RequestNotValidException>(() => _exportEnabledController.ExportResourceType(ResourceType.Observation.ToString()));
 }