Exemple #1
0
 private bool AssertEdiAsnSentMessageValues(EdiAsnSentMessage message)
 {
     Assert.That(message.BOL, Is.EqualTo(BOL));
     Assert.That(message.ControlNumber, Is.EqualTo(ControlNumber));
     Assert.That(message.LineNumbers.Count, Is.EqualTo(Lines.Count));
     return(true);
 }
Exemple #2
0
        public void Execute(IEdiMessage message)
        {
            var orderHasBeenShippedMessage = (OrderHasBeenShippedMessage)message;

            var ediAsnSentMessageToBeSent = new EdiAsnSentMessage()
            {
                ControlNumber = orderHasBeenShippedMessage.ControlNumber,
                BOL           = orderHasBeenShippedMessage.BOL,
                LineNumbers   = orderHasBeenShippedMessage.GetLineNumbers().ToList()
            };

            _publisher.Publish(ediAsnSentMessageToBeSent);
        }
Exemple #3
0
 public void Publish <T>(T message) where T : class
 {
     PublishedMessage = message as EdiAsnSentMessage;
 }