Пример #1
0
        public static MigratingTransitionInstanceValidationReportDto from(MigratingTransitionInstanceValidationReport report)
        {
            MigratingTransitionInstanceValidationReportDto dto = new MigratingTransitionInstanceValidationReportDto();

            dto.MigrationInstruction = MigrationInstructionDto.from(report.MigrationInstruction);
            dto.TransitionInstanceId = report.TransitionInstanceId;
            dto.Failures             = report.Failures;
            dto.SourceScopeId        = report.SourceScopeId;
            return(dto);
        }
Пример #2
0
        public static MigratingProcessInstanceValidationReportDto from(MigratingProcessInstanceValidationReport validationReport)
        {
            MigratingProcessInstanceValidationReportDto dto = new MigratingProcessInstanceValidationReportDto();

            dto.ProcessInstanceId = validationReport.ProcessInstanceId;
            dto.Failures          = validationReport.Failures;
            dto.ActivityInstanceValidationReports   = MigratingActivityInstanceValidationReportDto.from(validationReport.ActivityInstanceReports);
            dto.TransitionInstanceValidationReports = MigratingTransitionInstanceValidationReportDto.from(validationReport.TransitionInstanceReports);
            return(dto);
        }
Пример #3
0
        public static IList <MigratingTransitionInstanceValidationReportDto> from(IList <MigratingTransitionInstanceValidationReport> reports)
        {
            List <MigratingTransitionInstanceValidationReportDto> dtos = new List <MigratingTransitionInstanceValidationReportDto>();

            foreach (MigratingTransitionInstanceValidationReport report in reports)
            {
                dtos.Add(MigratingTransitionInstanceValidationReportDto.from(report));
            }
            return(dtos);
        }