public void Valid_Id_Returns_ObjectId() { var searchHelper = new FhirSearchHelper(_fhirCacheHelper); var filter = searchHelper.BuildIdQuery("5b7bcc664af1d03816095dac"); Assert.IsAssignableFrom <FilterDefinition <BsonDocument> >(filter); }
public void Invalid_Id_Throws_Exception() { var searchHelper = new FhirSearchHelper(_fhirCacheHelper); Assert.Throws <HttpFhirException>(() => { var filter = searchHelper.BuildIdQuery("badId"); }); }