public async void Find_Search_Valid_Summary() { var search = new NrlsSearch(_nrlsApiSettings, _fhirSearch, _cache, _fhirValidation); var actualBundle = await search.Find <DocumentReference>(FhirRequests.Valid_Search_Summary) as Bundle; Assert.Equal(_expectedBundle, actualBundle, Comparers.ModelComparer <Bundle>()); }
public async void Find_Read_Invalid_Id() { var search = new NrlsSearch(_nrlsApiSettings, _fhirSearch, _cache, _fhirValidation); await Assert.ThrowsAsync <HttpFhirException>(async() => { var actualBundle = await search.Find <DocumentReference>(FhirRequests.Invalid_Read_EmptyId); }); //TODO check exception thrown }
public async void Find_Search_Valid() { var search = new NrlsSearch(_nrlsApiSettings, _fhirSearch, _sdsService, _fhirValidation); var actualBundle = await search.Find(FhirRequests.Valid_Search) as Bundle; Assert.Equal(_expectedBundle, actualBundle, Comparers.ModelComparer <Bundle>()); }
public void Find_Search_Invalid_Summary() { var search = new NrlsSearch(_nrlsApiSettings, _fhirSearch, _cache, _fhirValidation); Assert.ThrowsAsync <HttpFhirException>(async() => { var actualBundle = await search.Find <DocumentReference>(FhirRequests.Invalid_Search_IncorrectSummary); }); }
public void Find_Search_Invalid_Patient() { var search = new NrlsSearch(_nrlsApiSettings, _fhirSearch, _sdsService, _fhirValidation); Assert.ThrowsAsync <HttpFhirException>(async() => { var actualBundle = await search.Find(FhirRequests.Invalid_Search_Invalid_Patient); }); }
public void Find_Read_Invalid_Params() { var search = new NrlsSearch(_nrlsApiSettings, _fhirSearch, _cache, _fhirValidation); Assert.ThrowsAsync <HttpFhirException>(async() => { var actual = await search.Find <DocumentReference>(FhirRequests.Invalid_Read_TooManyParams); }); }