Esempio n. 1
0
        public static void Run(string[] args)
        {
            switch (args[0])
            {
            case "2015":
                Runner2015.Run(args.Skip(1).ToArray());
                break;

            case "2017":
                Runner2017.Run(args.Skip(1).ToArray());
                break;

            case "2020":
                Runner2020.Run(args.Skip(1).ToArray());
                break;

            case "2021":
                Runner2021.Run(args.Skip(1).ToArray());
                break;

            default:
                Console.WriteLine($"Unable to find year {args[0]}.");
                break;
            }
        }
Esempio n. 2
0
        public static void RunAll(string year = null)
        {
            switch (year)
            {
            case "2015":
                Runner2015.RunAll();
                break;

            case "2017":
                Runner2017.RunAll();
                break;

            case "2020":
                Runner2020.RunAll();
                break;

            case "2021":
                Runner2021.RunAll();
                break;

            default:

                Runner2015.RunAll();

                Runner2017.RunAll();

                Runner2020.RunAll();

                Runner2021.RunAll();

                break;
            }
        }