예제 #1
0
        public void Unwrap()
        {
            TransportItem item1 = new TransportItem(DomainObjectIDs.Order1);
            TransportItem item2 = new TransportItem(DomainObjectIDs.Order3);

            TransportItem[] items = XmlTransportItem.Unwrap(new[] { new XmlTransportItem(item1), new XmlTransportItem(item2) });
            Assert.That(items.Length, Is.EqualTo(2));
            Assert.That(items[0], Is.EqualTo(item1));
            Assert.That(items[1], Is.EqualTo(item2));
        }
예제 #2
0
 private TransportItem[] SerializeAndDeserialize(TransportItem[] items)
 {
     return(XmlTransportItem.Unwrap(XmlSerializationHelper.XmlSerializeAndDeserialize(XmlTransportItem.Wrap(items))));
 }