public void SetUp() { fixture = new Fixture(); hl7Config = fixture.Create <HL7Config>(); hl7MessageProcessorUnderTest = new HL7MessageProcessor(Options.Create(hl7Config)); }
public HL7() { _decoder = new HL7DecoderA(); string strMessage = Helpers.GetStringFromFile(@"CategoryA\SampleMessages\HL7.txt"); _message = new Message(strMessage); _message.ParseMessage(); string strEncodedMessage = $"{(char)0x0b}{strMessage.Replace("\r\n", "\r")}{(char)0x1c}{(char)0x0d}"; _deviceMessage = new DeviceMessage { ClientId = ClientId, DeviceCategory = "A", SendingFacility = SendingFacility, MessageType = "HL7", ContentsList = new List <string> { strEncodedMessage } }; _processor = new HL7MessageProcessor(_decoder); }