コード例 #1
0
        public override void Handle(Report report)
        {
            if (report.Type == ReportType.Critical || report.Priority >= 8)
            {
                report.Status  = ReportStatus.Resolved;
                report.Handler = nameof(LeadDeveloper);
            }

            if (report.Status != ReportStatus.Resolved)
            {
                NextEmployee.Handle(report);
            }
        }
コード例 #2
0
        public override void Handle(Report report)
        {
            if (report.Type == ReportType.Severe || (report.Priority >= 4 && report.Priority < 8))
            {
                report.Status  = ReportStatus.Resolved;
                report.Handler = nameof(Developer);
            }

            if (report.Status != ReportStatus.Resolved)
            {
                NextEmployee.Handle(report);
            }
        }
コード例 #3
0
        public override void Handle(Report report)
        {
            report.Status = ReportStatus.InProgress;

            if (report.Type == ReportType.Minimal || report.Priority < 4)
            {
                report.Status  = ReportStatus.Resolved;
                report.Handler = nameof(QualityEngineer);
            }

            if (report.Status != ReportStatus.Resolved)
            {
                NextEmployee.Handle(report);
            }
        }