Ejemplo n.º 1
0
        public static MigrationPlanReportDto form(MigrationPlanValidationReport validationReport)
        {
            MigrationPlanReportDto dto = new MigrationPlanReportDto();

            dto.InstructionReports = MigrationInstructionValidationReportDto.from(validationReport.InstructionReports);
            return(dto);
        }
Ejemplo n.º 2
0
        public static MigrationInstructionValidationReportDto from(MigrationInstructionValidationReport instructionReport)
        {
            MigrationInstructionValidationReportDto dto = new MigrationInstructionValidationReportDto();

            dto.Instruction = MigrationInstructionDto.from(instructionReport.MigrationInstruction);
            dto.Failures    = instructionReport.Failures;
            return(dto);
        }
Ejemplo n.º 3
0
        public static IList <MigrationInstructionValidationReportDto> from(IList <MigrationInstructionValidationReport> instructionReports)
        {
            IList <MigrationInstructionValidationReportDto> dtos = new List <MigrationInstructionValidationReportDto>();

            foreach (MigrationInstructionValidationReport instructionReport in instructionReports)
            {
                dtos.Add(MigrationInstructionValidationReportDto.from(instructionReport));
            }
            return(dtos);
        }