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;
 }
        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);
        }