Exemple #1
0
        public void Execute()
        {
            Console.WriteLine("Welcome to the Diagnosis Runner!");
            Console.WriteLine("Please enter a Member ID:");
            int memberId = ReadInput();
            List <MemberDiagnosticReport> reports = _repo.GetMemberDiagnosisReport(memberId);

            if (reports.Any())
            {
                Console.WriteLine($"{reports.Count} records for Member ID {memberId} reported:");
                foreach (var report in reports)
                {
                    Console.WriteLine(report);
                }
            }
            else
            {
                Console.WriteLine($"No reports returned for the supplied Member ID: {memberId}");
            }
        }