Esempio n. 1
0
 public void LoadTransportData_InvalidData()
 {
     using (var stream = new MemoryStream(new byte[] { 1, 2, 3 }))
     {
         DomainObjectTransporter.LoadTransportData(stream);
     }
 }
        private TransportedDomainObjects Transport(DomainObjectTransporter transporter)
        {
            using (var stream = new MemoryStream())
            {
                transporter.Export(stream);
                stream.Seek(0, SeekOrigin.Begin);

                return(DomainObjectTransporter.LoadTransportData(stream));
            }
        }
Esempio n. 3
0
 private TransportedDomainObjects ExportAndLoadTransportData(IImportStrategy importStrategy, IExportStrategy exportStrategy)
 {
     _transporter.Export(_stream, exportStrategy);
     _stream.Seek(0, SeekOrigin.Begin);
     return(DomainObjectTransporter.LoadTransportData(_stream, importStrategy));
 }
Esempio n. 4
0
 private TransportedDomainObjects ExportAndLoadTransportData()
 {
     _transporter.Export(_stream);
     _stream.Seek(0, SeekOrigin.Begin);
     return(DomainObjectTransporter.LoadTransportData(_stream));
 }