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)); } }
private TransportedDomainObjects ExportAndLoadTransportData(IImportStrategy importStrategy, IExportStrategy exportStrategy) { _transporter.Export(_stream, exportStrategy); _stream.Seek(0, SeekOrigin.Begin); return(DomainObjectTransporter.LoadTransportData(_stream, importStrategy)); }
private TransportedDomainObjects ExportAndLoadTransportData() { _transporter.Export(_stream); _stream.Seek(0, SeekOrigin.Begin); return(DomainObjectTransporter.LoadTransportData(_stream)); }