Пример #1
0
        public static MigrationPlanReportDto form(MigrationPlanValidationReport validationReport)
        {
            MigrationPlanReportDto dto = new MigrationPlanReportDto();

            dto.InstructionReports = MigrationInstructionValidationReportDto.from(validationReport.InstructionReports);
            return(dto);
        }
Пример #2
0
        public static MigrationPlanReportDto emptyReport()
        {
            MigrationPlanReportDto dto = new MigrationPlanReportDto();

            dto.InstructionReports = System.Linq.Enumerable.Empty <MigrationInstructionValidationReportDto>();
            return(dto);
        }
Пример #3
0
        public static MigrationPlanValidationExceptionDto from(MigrationPlanValidationException exception)
        {
            MigrationPlanValidationExceptionDto dto = new MigrationPlanValidationExceptionDto();

            dto.message          = exception.Message;
            dto.type             = exception.GetType().Name;
            dto.ValidationReport = MigrationPlanReportDto.form(exception.ValidationReport);
            return(dto);
        }