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