Created
March 1, 2017 16:27
-
-
Save jakesays-old/d81a1f79d68eb1ac793a7e5043e13f45 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void HlSegmentParseTest() | |
{ | |
ISegmentReader reader = null; | |
InterchangeParser<HealthCareClaim, ClaimParserContext> parser = null; | |
List<HealthCareClaim> claims = null; | |
ClaimParserContext context = null; | |
var claimCount = 0; | |
ITransactionParserFactory factory = null; | |
arrange(() => | |
{ | |
reader = DataManager.LoadEdiFile("HLSegmentParseIssue.edi"); | |
context = new ClaimParserContext(new SegmentParser(reader, X12Segments.SegmentProvider)); | |
factory = new ClaimTransactionParserFactory(context); | |
parser = new InterchangeParser<HealthCareClaim, ClaimParserContext>(context, factory); | |
}); | |
act(() => | |
{ | |
parser.Go(); | |
claims = context.Documents; | |
claimCount = claims.Count; | |
}); | |
assert(() => | |
{ | |
Assert.AreEqual(69, claimCount); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment