Esempio n. 1
0
        public override bool Handle(SoftwareBugReport request)
        {
            if (request.Priority != Priority.Low)
            {
                return(base.Handle(request));
            }

            Console.WriteLine($"Bug handled by {nameof(LowSoftwareBugHandler)} handler.");
            Console.WriteLine($"++ Bug added to Azure DevOps to bottom of product backlog.");
            Console.WriteLine($"++ Adding Priority Tag {request.Priority.ToString()}");
            request.Status = Status.Handled;
            return(true);
        }
Esempio n. 2
0
        public override bool Handle(SoftwareBugReport request)
        {
            if (request.Priority != Priority.Normal)
            {
                return(base.Handle(request));
            }

            Console.WriteLine($"Bug handled by {nameof(NormalSoftwareBugHandler)} handler.");
            Console.WriteLine($"++ Bug alert sent to product owner Slack channel.");
            Console.WriteLine($"++ Bug added to Azure DevOps to middle of product backlog.");
            Console.WriteLine($"++ Adding Priority Tag {request.Priority.ToString()}");
            request.Status = Status.Handled;
            return(true);
        }
Esempio n. 3
0
        public void ProcessBugReport(SoftwareBugReport bugReport)
        {
            var handled = false;

            foreach (var receiver in _bugReportReceivers)
            {
                Console.ForegroundColor = ConsoleColor.Yellow;

                if (!receiver.Handle(bugReport))
                {
                    continue;
                }
                else
                {
                    handled = true;
                    break;
                }
            }
        }