public virtual void ShouldExtractResponseMessageAlt() { var b = LoadResponse("soapResponseAlt.xml"); var document = new Hl7MessageExtractor().GetHl7Message(new MemoryStream(b)); Assert.IsTrue(document.Contains("<hl7:PRPA_IN101104CA"), "string"); }
public virtual void ShouldExtractResponseMessage() { var b = LoadResponse("soapResponse.xml"); var document = new Hl7MessageExtractor().GetHl7Message(new MemoryStream(b)); Assert.IsTrue(document.Contains("<hl7:PRPA_IN101104CA"), "string"); var documentElement = new DocumentFactory().CreateFromString(document).DocumentElement; var localName = documentElement.LocalName; Assert.AreEqual("PRPA_IN101104CA", localName, "root"); }