public virtual void TestValidationFailureWithExtraElements() { MessageValidatorResult result = ValidateWithMockService("PRPA_IN101101CA_with_extra_elements.xml"); Assert.AreEqual(1, result.GetHl7Errors().Count, "result"); Assert.AreEqual("/PRPA_IN101101CA/fred", result.GetHl7Errors()[0].GetPath(), "message"); }
public virtual void TestValidationFailureWithMissingNamespace() { MessageValidatorResult result = ValidateWithMockService("PRPA_IN101101CA_missing_namespace.xml"); Assert.AreEqual(1, result.GetHl7Errors().Count, "result"); Assert.AreEqual("/PRPA_IN101101CA", result.GetHl7Errors()[0].GetPath(), "message"); }
public virtual void TestValidationFailureWithTooManyInstancesOfAssociation() { MessageValidatorResult result = ValidateWithMockService("PRPA_IN101101CA_with_too_many_associations.xml"); Assert.AreEqual(1, result.GetHl7Errors().Count, "result"); Assert.AreEqual("/PRPA_IN101101CA/sender", result.GetHl7Errors()[0].GetPath(), "message"); }
public virtual void TestValidationFailureWithExtraAttributed() { MessageValidatorResult result = ValidateWithMockService("PRPA_IN101101CA_with_extra_structural_attribute.xml"); Assert.AreEqual(1, result.GetHl7Errors().Count, "result"); Assert.AreEqual("/PRPA_IN101101CA/controlActEvent/@fred", result.GetHl7Errors()[0].GetPath(), "message"); }
public virtual void TestValidationFailureOnFixedValue() { MessageValidatorResult result = ValidateWithMockService("PRPA_IN101101CA_with_fixed_value_error.xml"); Assert.AreEqual(1, result.GetHl7Errors().Count, "result"); Assert.AreEqual("/PRPA_IN101101CA/controlActEvent/@classCode", result.GetHl7Errors()[0].GetPath(), "message"); }
public virtual void TestValidationFailureOnAttribute() { MessageValidatorResult result = ValidateWithMockService("PRPA_IN101101CA_invalid.xml"); foreach (Hl7Error error in result.GetHl7Errors()) { System.Console.Out.WriteLine(error); } Assert.AreEqual(1, result.GetHl7Errors().Count, "result"); Assert.AreEqual("/PRPA_IN101101CA/receiver/device/id", result.GetHl7Errors()[0].GetPath(), "message"); }
public virtual void TestValidateMessageWithLocalExtensions() { MessageValidatorResult result = ValidateWithMockService("PRPA_IN101101CA_with_additional_namespace.xml"); AssertNoErrors("result", result.GetHl7Errors()); }
public virtual void TestValidateCaseWhereTemplateTypeIsAlsoChoiceType() { MessageValidatorResult result = ValidateWithMockService("PRPM_IN306011CA.xml"); AssertNoErrors("result", result.GetHl7Errors()); }
public virtual void TestValidate() { MessageValidatorResult result = ValidateWithMockService("PRPA_IN101101CA.xml"); AssertNoErrors("result", result.GetHl7Errors()); }
public virtual void TestIntelliwareSampleXml() { MessageValidatorResult result = ValidateWithActualService("findCandidatesMr2009Sample.xml"); AssertNoErrors("result", result.GetHl7Errors()); }
public virtual void TestChiSampleXml2() { MessageValidatorResult result = ValidateWithActualService("Test 2 PORX_IN000003CA.xml"); AssertNoErrors("result", result.GetHl7Errors()); }
public virtual void TestValidationWithNullFlavor() { MessageValidatorResult result = ValidateWithMockService("PRPA_IN101101CA_with_nullFlavor.xml"); AssertNoErrors("result", result.GetHl7Errors()); }
public virtual void TestValidationOfUnknownType() { MessageValidatorResult result = ValidateWithMockService("COMT_IN700001CA.xml"); Assert.AreEqual(1, result.GetHl7Errors().Count, "result"); }
public virtual void TestValidationNoFailureDueToSchemaLocation() { MessageValidatorResult result = ValidateWithMockService("PRPA_IN101101CA_with_schema_location.xml"); AssertNoErrors("result", result.GetHl7Errors()); }