Beispiel #1
0
 public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         ISegment hl7Segment = new QakSegment();
         hl7Segment.FromDelimitedString("QAA|^~&|3|4|5|6");
     });
 }
Beispiel #2
0
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            ISegment expected = new QakSegment
            {
                QueryTag            = "1",
                QueryResponseStatus = "2",
                MessageQueryName    = new CodedWithExceptions
                {
                    Identifier = "3"
                },
                HitCountTotal = 4,
                ThisPayload   = 5,
                HitsRemaining = 6
            };

            ISegment actual = new QakSegment();

            actual.FromDelimitedString("QAK|1|2|3|4|5|6");

            expected.Should().BeEquivalentTo(actual);
        }