Beispiel #1
0
        public static TestedMedia MapTestedMedia(testedMediaType oldMedia)
        {
            if (oldMedia == null)
            {
                return(null);
            }

            TestedMedia newMedia = new TestedMedia();

            if (oldMedia.BlocksSpecified)
            {
                newMedia.Blocks = oldMedia.Blocks;
            }
            if (oldMedia.BlockSizeSpecified)
            {
                newMedia.BlockSize = oldMedia.BlockSize;
            }
            if (oldMedia.CanReadAACSSpecified)
            {
                newMedia.CanReadAACS = oldMedia.CanReadAACS;
            }
            if (oldMedia.CanReadADIPSpecified)
            {
                newMedia.CanReadADIP = oldMedia.CanReadADIP;
            }
            if (oldMedia.CanReadATIPSpecified)
            {
                newMedia.CanReadATIP = oldMedia.CanReadATIP;
            }
            if (oldMedia.CanReadBCASpecified)
            {
                newMedia.CanReadBCA = oldMedia.CanReadBCA;
            }
            if (oldMedia.CanReadC2PointersSpecified)
            {
                newMedia.CanReadC2Pointers = oldMedia.CanReadC2Pointers;
            }
            if (oldMedia.CanReadCMISpecified)
            {
                newMedia.CanReadCMI = oldMedia.CanReadCMI;
            }
            if (oldMedia.CanReadCorrectedSubchannelSpecified)
            {
                newMedia.CanReadCorrectedSubchannel = oldMedia.CanReadCorrectedSubchannel;
            }
            if (oldMedia.CanReadCorrectedSubchannelWithC2Specified)
            {
                newMedia.CanReadCorrectedSubchannelWithC2 = oldMedia.CanReadCorrectedSubchannelWithC2;
            }
            if (oldMedia.CanReadDCBSpecified)
            {
                newMedia.CanReadDCB = oldMedia.CanReadDCB;
            }
            if (oldMedia.CanReadDDSSpecified)
            {
                newMedia.CanReadDDS = oldMedia.CanReadDDS;
            }
            if (oldMedia.CanReadDMISpecified)
            {
                newMedia.CanReadDMI = oldMedia.CanReadDMI;
            }
            if (oldMedia.CanReadDiscInformationSpecified)
            {
                newMedia.CanReadDiscInformation = oldMedia.CanReadDiscInformation;
            }
            if (oldMedia.CanReadFullTOCSpecified)
            {
                newMedia.CanReadFullTOC = oldMedia.CanReadFullTOC;
            }
            if (oldMedia.CanReadHDCMISpecified)
            {
                newMedia.CanReadHDCMI = oldMedia.CanReadHDCMI;
            }
            if (oldMedia.CanReadLayerCapacitySpecified)
            {
                newMedia.CanReadLayerCapacity = oldMedia.CanReadLayerCapacity;
            }
            if (oldMedia.CanReadLeadInSpecified)
            {
                newMedia.CanReadLeadInPostgap = oldMedia.CanReadLeadIn;
            }
            if (oldMedia.CanReadLeadOutSpecified)
            {
                newMedia.CanReadLeadOut = oldMedia.CanReadLeadOut;
            }
            if (oldMedia.CanReadMediaIDSpecified)
            {
                newMedia.CanReadMediaID = oldMedia.CanReadMediaID;
            }
            if (oldMedia.CanReadMediaSerialSpecified)
            {
                newMedia.CanReadMediaSerial = oldMedia.CanReadMediaSerial;
            }
            if (oldMedia.CanReadPACSpecified)
            {
                newMedia.CanReadPAC = oldMedia.CanReadPAC;
            }
            if (oldMedia.CanReadPFISpecified)
            {
                newMedia.CanReadPFI = oldMedia.CanReadPFI;
            }
            if (oldMedia.CanReadPMASpecified)
            {
                newMedia.CanReadPMA = oldMedia.CanReadPMA;
            }
            if (oldMedia.CanReadPQSubchannelSpecified)
            {
                newMedia.CanReadPQSubchannel = oldMedia.CanReadPQSubchannel;
            }
            if (oldMedia.CanReadPQSubchannelWithC2Specified)
            {
                newMedia.CanReadPQSubchannelWithC2 = oldMedia.CanReadPQSubchannelWithC2;
            }
            if (oldMedia.CanReadPRISpecified)
            {
                newMedia.CanReadPRI = oldMedia.CanReadPRI;
            }
            if (oldMedia.CanReadRWSubchannelSpecified)
            {
                newMedia.CanReadRWSubchannel = oldMedia.CanReadRWSubchannel;
            }
            if (oldMedia.CanReadRWSubchannelWithC2Specified)
            {
                newMedia.CanReadRWSubchannelWithC2 = oldMedia.CanReadRWSubchannelWithC2;
            }
            if (oldMedia.CanReadRecordablePFISpecified)
            {
                newMedia.CanReadRecordablePFI = oldMedia.CanReadRecordablePFI;
            }
            if (oldMedia.CanReadSpareAreaInformationSpecified)
            {
                newMedia.CanReadSpareAreaInformation = oldMedia.CanReadSpareAreaInformation;
            }
            if (oldMedia.CanReadTOCSpecified)
            {
                newMedia.CanReadTOC = oldMedia.CanReadTOC;
            }
            if (oldMedia.DensitySpecified)
            {
                newMedia.Density = oldMedia.Density;
            }
            if (oldMedia.LongBlockSizeSpecified)
            {
                newMedia.LongBlockSize = oldMedia.LongBlockSize;
            }
            if (oldMedia.ManufacturerSpecified)
            {
                newMedia.Manufacturer = oldMedia.Manufacturer;
            }
            newMedia.MediaIsRecognized = oldMedia.MediaIsRecognized;
            if (oldMedia.MediumTypeSpecified)
            {
                newMedia.MediumType = oldMedia.MediumType;
            }
            newMedia.MediumTypeName = oldMedia.MediumTypeName;
            if (oldMedia.ModelSpecified)
            {
                newMedia.Model = oldMedia.Model;
            }
            if (oldMedia.SupportsHLDTSTReadRawDVDSpecified)
            {
                newMedia.SupportsHLDTSTReadRawDVD = oldMedia.SupportsHLDTSTReadRawDVD;
            }
            if (oldMedia.SupportsNECReadCDDASpecified)
            {
                newMedia.SupportsNECReadCDDA = oldMedia.SupportsNECReadCDDA;
            }
            if (oldMedia.SupportsPioneerReadCDDASpecified)
            {
                newMedia.SupportsPioneerReadCDDA = oldMedia.SupportsPioneerReadCDDA;
            }
            if (oldMedia.SupportsPioneerReadCDDAMSFSpecified)
            {
                newMedia.SupportsPioneerReadCDDAMSF = oldMedia.SupportsPioneerReadCDDAMSF;
            }
            if (oldMedia.SupportsPlextorReadCDDASpecified)
            {
                newMedia.SupportsPlextorReadCDDA = oldMedia.SupportsPlextorReadCDDA;
            }
            if (oldMedia.SupportsPlextorReadRawDVDSpecified)
            {
                newMedia.SupportsPlextorReadRawDVD = oldMedia.SupportsPlextorReadRawDVD;
            }
            if (oldMedia.SupportsRead10Specified)
            {
                newMedia.SupportsRead10 = oldMedia.SupportsRead10;
            }
            if (oldMedia.SupportsRead12Specified)
            {
                newMedia.SupportsRead12 = oldMedia.SupportsRead12;
            }
            if (oldMedia.SupportsRead16Specified)
            {
                newMedia.SupportsRead16 = oldMedia.SupportsRead16;
            }
            if (oldMedia.SupportsReadSpecified)
            {
                newMedia.SupportsRead = oldMedia.SupportsRead;
            }
            if (oldMedia.SupportsReadCapacity16Specified)
            {
                newMedia.SupportsReadCapacity16 = oldMedia.SupportsReadCapacity16;
            }
            if (oldMedia.SupportsReadCapacitySpecified)
            {
                newMedia.SupportsReadCapacity = oldMedia.SupportsReadCapacity;
            }
            if (oldMedia.SupportsReadCdSpecified)
            {
                newMedia.SupportsReadCd = oldMedia.SupportsReadCd;
            }
            if (oldMedia.SupportsReadCdMsfSpecified)
            {
                newMedia.SupportsReadCdMsf = oldMedia.SupportsReadCdMsf;
            }
            if (oldMedia.SupportsReadCdRawSpecified)
            {
                newMedia.SupportsReadCdRaw = oldMedia.SupportsReadCdRaw;
            }
            if (oldMedia.SupportsReadCdMsfRawSpecified)
            {
                newMedia.SupportsReadCdMsfRaw = oldMedia.SupportsReadCdMsfRaw;
            }
            if (oldMedia.SupportsReadLong16Specified)
            {
                newMedia.SupportsReadLong16 = oldMedia.SupportsReadLong16;
            }
            if (oldMedia.SupportsReadLongSpecified)
            {
                newMedia.SupportsReadLong = oldMedia.SupportsReadLong;
            }
            newMedia.ModeSense6Data  = oldMedia.ModeSense6Data;
            newMedia.ModeSense10Data = oldMedia.ModeSense10Data;
            if (oldMedia.LBASectorsSpecified)
            {
                newMedia.LBASectors = oldMedia.LBASectors;
            }
            if (oldMedia.LBA48SectorsSpecified)
            {
                newMedia.LBA48Sectors = oldMedia.LBA48Sectors;
            }
            if (oldMedia.LogicalAlignmentSpecified)
            {
                newMedia.LogicalAlignment = oldMedia.LogicalAlignment;
            }
            if (oldMedia.NominalRotationRateSpecified)
            {
                newMedia.NominalRotationRate = oldMedia.NominalRotationRate;
            }
            if (oldMedia.PhysicalBlockSizeSpecified)
            {
                newMedia.PhysicalBlockSize = oldMedia.PhysicalBlockSize;
            }
            if (oldMedia.SolidStateDeviceSpecified)
            {
                newMedia.SolidStateDevice = oldMedia.SolidStateDevice;
            }
            if (oldMedia.UnformattedBPTSpecified)
            {
                newMedia.UnformattedBPT = oldMedia.UnformattedBPT;
            }
            if (oldMedia.UnformattedBPSSpecified)
            {
                newMedia.UnformattedBPS = oldMedia.UnformattedBPS;
            }
            if (oldMedia.SupportsReadDmaLbaSpecified)
            {
                newMedia.SupportsReadDmaLba = oldMedia.SupportsReadDmaLba;
            }
            if (oldMedia.SupportsReadDmaRetryLbaSpecified)
            {
                newMedia.SupportsReadDmaRetryLba = oldMedia.SupportsReadDmaRetryLba;
            }
            if (oldMedia.SupportsReadLbaSpecified)
            {
                newMedia.SupportsReadLba = oldMedia.SupportsReadLba;
            }
            if (oldMedia.SupportsReadRetryLbaSpecified)
            {
                newMedia.SupportsReadRetryLba = oldMedia.SupportsReadRetryLba;
            }
            if (oldMedia.SupportsReadLongLbaSpecified)
            {
                newMedia.SupportsReadLongLba = oldMedia.SupportsReadLongLba;
            }
            if (oldMedia.SupportsReadLongRetryLbaSpecified)
            {
                newMedia.SupportsReadLongRetryLba = oldMedia.SupportsReadLongRetryLba;
            }
            if (oldMedia.SupportsSeekLbaSpecified)
            {
                newMedia.SupportsSeekLba = oldMedia.SupportsSeekLba;
            }
            if (oldMedia.SupportsReadDmaLba48Specified)
            {
                newMedia.SupportsReadDmaLba48 = oldMedia.SupportsReadDmaLba48;
            }
            if (oldMedia.SupportsReadLba48Specified)
            {
                newMedia.SupportsReadLba48 = oldMedia.SupportsReadLba48;
            }
            if (oldMedia.SupportsReadDmaSpecified)
            {
                newMedia.SupportsReadDma = oldMedia.SupportsReadDma;
            }
            if (oldMedia.SupportsReadDmaRetrySpecified)
            {
                newMedia.SupportsReadDmaRetry = oldMedia.SupportsReadDmaRetry;
            }
            if (oldMedia.SupportsReadRetrySpecified)
            {
                newMedia.SupportsReadRetry = oldMedia.SupportsReadRetry;
            }
            if (oldMedia.SupportsReadLongRetrySpecified)
            {
                newMedia.SupportsReadLongRetry = oldMedia.SupportsReadLongRetry;
            }
            if (oldMedia.SupportsSeekSpecified)
            {
                newMedia.SupportsSeek = oldMedia.SupportsSeek;
            }

            if (oldMedia.CHS != null)
            {
                newMedia.CHS = new CHS
                {
                    Cylinders = oldMedia.CHS.Cylinders,
                    Heads     = oldMedia.CHS.Heads,
                    Sectors   = oldMedia.CHS.Sectors
                }
            }
            ;
            if (oldMedia.CurrentCHS != null)
            {
                newMedia.CurrentCHS = new CHS
                {
                    Cylinders = oldMedia.CurrentCHS.Cylinders,
                    Heads     = oldMedia.CurrentCHS.Heads,
                    Sectors   = oldMedia.CurrentCHS.Sectors
                }
            }
            ;

            return(newMedia);
        }
    }
}
Beispiel #2
0
        public static ATA MapAta(ataType oldAta)
        {
            if (oldAta == null)
            {
                return(null);
            }

            ATA newAta = new ATA
            {
                Identify         = oldAta.Identify,
                ReadCapabilities = TestedMedia.MapTestedMedia(oldAta.ReadCapabilities)
            };

            if (oldAta.AdditionalPIDSpecified)
            {
                newAta.AdditionalPID = oldAta.AdditionalPID;
            }
            if (oldAta.APIOSupportedSpecified)
            {
                newAta.APIOSupported = oldAta.APIOSupported;
            }
            if (oldAta.ATAPIByteCountSpecified)
            {
                newAta.ATAPIByteCount = oldAta.ATAPIByteCount;
            }
            if (oldAta.BufferTypeSpecified)
            {
                newAta.BufferType = oldAta.BufferType;
            }
            if (oldAta.BufferSizeSpecified)
            {
                newAta.BufferSize = oldAta.BufferSize;
            }
            if (oldAta.CapabilitiesSpecified)
            {
                newAta.Capabilities = oldAta.Capabilities;
            }
            if (oldAta.Capabilities2Specified)
            {
                newAta.Capabilities2 = oldAta.Capabilities2;
            }
            if (oldAta.Capabilities3Specified)
            {
                newAta.Capabilities3 = oldAta.Capabilities3;
            }
            if (oldAta.CFAPowerModeSpecified)
            {
                newAta.CFAPowerMode = oldAta.CFAPowerMode;
            }
            if (oldAta.CommandSetSpecified)
            {
                newAta.CommandSet = oldAta.CommandSet;
            }
            if (oldAta.CommandSet2Specified)
            {
                newAta.CommandSet2 = oldAta.CommandSet2;
            }
            if (oldAta.CommandSet3Specified)
            {
                newAta.CommandSet3 = oldAta.CommandSet3;
            }
            if (oldAta.CommandSet4Specified)
            {
                newAta.CommandSet4 = oldAta.CommandSet4;
            }
            if (oldAta.CommandSet5Specified)
            {
                newAta.CommandSet5 = oldAta.CommandSet5;
            }
            if (oldAta.CurrentAAMSpecified)
            {
                newAta.CurrentAAM = oldAta.CurrentAAM;
            }
            if (oldAta.CurrentAPMSpecified)
            {
                newAta.CurrentAPM = oldAta.CurrentAPM;
            }
            if (oldAta.DataSetMgmtSpecified)
            {
                newAta.DataSetMgmt = oldAta.DataSetMgmt;
            }
            if (oldAta.DataSetMgmtSizeSpecified)
            {
                newAta.DataSetMgmtSize = oldAta.DataSetMgmtSize;
            }
            if (oldAta.DeviceFormFactorSpecified)
            {
                newAta.DeviceFormFactor = oldAta.DeviceFormFactor;
            }
            if (oldAta.DMAActiveSpecified)
            {
                newAta.DMAActive = oldAta.DMAActive;
            }
            if (oldAta.DMASupportedSpecified)
            {
                newAta.DMASupported = oldAta.DMASupported;
            }
            if (oldAta.DMATransferTimingModeSpecified)
            {
                newAta.DMATransferTimingMode = oldAta.DMATransferTimingMode;
            }
            if (oldAta.EnhancedSecurityEraseTimeSpecified)
            {
                newAta.EnhancedSecurityEraseTime = oldAta.EnhancedSecurityEraseTime;
            }
            if (oldAta.EnabledCommandSetSpecified)
            {
                newAta.EnabledCommandSet = oldAta.EnabledCommandSet;
            }
            if (oldAta.EnabledCommandSet2Specified)
            {
                newAta.EnabledCommandSet2 = oldAta.EnabledCommandSet2;
            }
            if (oldAta.EnabledCommandSet3Specified)
            {
                newAta.EnabledCommandSet3 = oldAta.EnabledCommandSet3;
            }
            if (oldAta.EnabledCommandSet4Specified)
            {
                newAta.EnabledCommandSet4 = oldAta.EnabledCommandSet4;
            }
            if (oldAta.EnabledSATAFeaturesSpecified)
            {
                newAta.EnabledSATAFeatures = oldAta.EnabledSATAFeatures;
            }
            if (oldAta.ExtendedUserSectorsSpecified)
            {
                newAta.ExtendedUserSectors = oldAta.ExtendedUserSectors;
            }
            if (oldAta.FreeFallSensitivitySpecified)
            {
                newAta.FreeFallSensitivity = oldAta.FreeFallSensitivity;
            }
            if (oldAta.FirmwareRevisionSpecified)
            {
                newAta.FirmwareRevision = oldAta.FirmwareRevision;
            }
            if (oldAta.GeneralConfigurationSpecified)
            {
                newAta.GeneralConfiguration = oldAta.GeneralConfiguration;
            }
            if (oldAta.HardwareResetResultSpecified)
            {
                newAta.HardwareResetResult = oldAta.HardwareResetResult;
            }
            if (oldAta.InterseekDelaySpecified)
            {
                newAta.InterseekDelay = oldAta.InterseekDelay;
            }
            if (oldAta.MajorVersionSpecified)
            {
                newAta.MajorVersion = oldAta.MajorVersion;
            }
            if (oldAta.MasterPasswordRevisionCodeSpecified)
            {
                newAta.MasterPasswordRevisionCode = oldAta.MasterPasswordRevisionCode;
            }
            if (oldAta.MaxDownloadMicroMode3Specified)
            {
                newAta.MaxDownloadMicroMode3 = oldAta.MaxDownloadMicroMode3;
            }
            if (oldAta.MaxQueueDepthSpecified)
            {
                newAta.MaxQueueDepth = oldAta.MaxQueueDepth;
            }
            if (oldAta.MDMAActiveSpecified)
            {
                newAta.MDMAActive = oldAta.MDMAActive;
            }
            if (oldAta.MDMASupportedSpecified)
            {
                newAta.MDMASupported = oldAta.MDMASupported;
            }
            if (oldAta.MinDownloadMicroMode3Specified)
            {
                newAta.MinDownloadMicroMode3 = oldAta.MinDownloadMicroMode3;
            }
            if (oldAta.MinMDMACycleTimeSpecified)
            {
                newAta.MinMDMACycleTime = oldAta.MinMDMACycleTime;
            }
            if (oldAta.MinorVersionSpecified)
            {
                newAta.MinorVersion = oldAta.MinorVersion;
            }
            if (oldAta.MinPIOCycleTimeNoFlowSpecified)
            {
                newAta.MinPIOCycleTimeNoFlow = oldAta.MinPIOCycleTimeNoFlow;
            }
            if (oldAta.MinPIOCycleTimeFlowSpecified)
            {
                newAta.MinPIOCycleTimeFlow = oldAta.MinPIOCycleTimeFlow;
            }
            if (oldAta.ModelSpecified)
            {
                newAta.Model = oldAta.Model;
            }
            if (oldAta.MultipleMaxSectorsSpecified)
            {
                newAta.MultipleMaxSectors = oldAta.MultipleMaxSectors;
            }
            if (oldAta.MultipleSectorNumberSpecified)
            {
                newAta.MultipleSectorNumber = oldAta.MultipleSectorNumber;
            }
            if (oldAta.NVCacheCapsSpecified)
            {
                newAta.NVCacheCaps = oldAta.NVCacheCaps;
            }
            if (oldAta.NVCacheSizeSpecified)
            {
                newAta.NVCacheSize = oldAta.NVCacheSize;
            }
            if (oldAta.NVCacheWriteSpeedSpecified)
            {
                newAta.NVCacheWriteSpeed = oldAta.NVCacheWriteSpeed;
            }
            if (oldAta.NVEstimatedSpinUpSpecified)
            {
                newAta.NVEstimatedSpinUp = oldAta.NVEstimatedSpinUp;
            }
            if (oldAta.PacketBusReleaseSpecified)
            {
                newAta.PacketBusRelease = oldAta.PacketBusRelease;
            }
            if (oldAta.PIOTransferTimingModeSpecified)
            {
                newAta.PIOTransferTimingMode = oldAta.PIOTransferTimingMode;
            }
            if (oldAta.RecommendedAAMSpecified)
            {
                newAta.RecommendedAAM = oldAta.RecommendedAAM;
            }
            if (oldAta.RecommendedMDMACycleTimeSpecified)
            {
                newAta.RecommendedMDMACycleTime = oldAta.RecommendedMDMACycleTime;
            }
            if (oldAta.RemovableStatusSetSpecified)
            {
                newAta.RemovableStatusSet = oldAta.RemovableStatusSet;
            }
            if (oldAta.SATACapabilitiesSpecified)
            {
                newAta.SATACapabilities = oldAta.SATACapabilities;
            }
            if (oldAta.SATACapabilities2Specified)
            {
                newAta.SATACapabilities2 = oldAta.SATACapabilities2;
            }
            if (oldAta.SATAFeaturesSpecified)
            {
                newAta.SATAFeatures = oldAta.SATAFeatures;
            }
            if (oldAta.SCTCommandTransportSpecified)
            {
                newAta.SCTCommandTransport = oldAta.SCTCommandTransport;
            }
            if (oldAta.SectorsPerCardSpecified)
            {
                newAta.SectorsPerCard = oldAta.SectorsPerCard;
            }
            if (oldAta.SecurityEraseTimeSpecified)
            {
                newAta.SecurityEraseTime = oldAta.SecurityEraseTime;
            }
            if (oldAta.SecurityStatusSpecified)
            {
                newAta.SecurityStatus = oldAta.SecurityStatus;
            }
            if (oldAta.ServiceBusyClearSpecified)
            {
                newAta.ServiceBusyClear = oldAta.ServiceBusyClear;
            }
            if (oldAta.SpecificConfigurationSpecified)
            {
                newAta.SpecificConfiguration = oldAta.SpecificConfiguration;
            }
            if (oldAta.StreamAccessLatencySpecified)
            {
                newAta.StreamAccessLatency = oldAta.StreamAccessLatency;
            }
            if (oldAta.StreamMinReqSizeSpecified)
            {
                newAta.StreamMinReqSize = oldAta.StreamMinReqSize;
            }
            if (oldAta.StreamPerformanceGranularitySpecified)
            {
                newAta.StreamPerformanceGranularity = oldAta.StreamPerformanceGranularity;
            }
            if (oldAta.StreamTransferTimeDMASpecified)
            {
                newAta.StreamTransferTimeDMA = oldAta.StreamTransferTimeDMA;
            }
            if (oldAta.StreamTransferTimePIOSpecified)
            {
                newAta.StreamTransferTimePIO = oldAta.StreamTransferTimePIO;
            }
            if (oldAta.TransportMajorVersionSpecified)
            {
                newAta.TransportMajorVersion = oldAta.TransportMajorVersion;
            }
            if (oldAta.TransportMinorVersionSpecified)
            {
                newAta.TransportMinorVersion = oldAta.TransportMinorVersion;
            }
            if (oldAta.TrustedComputingSpecified)
            {
                newAta.TrustedComputing = oldAta.TrustedComputing;
            }
            if (oldAta.UDMAActiveSpecified)
            {
                newAta.UDMAActive = oldAta.UDMAActive;
            }
            if (oldAta.UDMASupportedSpecified)
            {
                newAta.UDMASupported = oldAta.UDMASupported;
            }
            if (oldAta.WRVModeSpecified)
            {
                newAta.WRVMode = oldAta.WRVMode;
            }
            if (oldAta.WRVSectorCountMode3Specified)
            {
                newAta.WRVSectorCountMode3 = oldAta.WRVSectorCountMode3;
            }
            if (oldAta.WRVSectorCountMode2Specified)
            {
                newAta.WRVSectorCountMode2 = oldAta.WRVSectorCountMode2;
            }

            if (oldAta.RemovableMedias == null)
            {
                return(newAta);
            }

            newAta.RemovableMedias = new List <TestedMedia>(oldAta.RemovableMedias.Select(TestedMedia.MapTestedMedia));

            return(newAta);
        }