static void Main(string[] args)
        {
            string        input;
            IPowerpoint   powerpoint;
            IIssueScanner scanner;
            string        welcomeMessage = "Drag in Powerpoint and press enter..";

            while (true)
            {
                ;
                Console.Clear();
                Console.SetCursorPosition(Console.WindowLeft + (Console.WindowWidth / 2) - (welcomeMessage.Length / 2), Console.WindowTop + (Console.WindowHeight / 2));
                Loader loader = new Loader(0, 0, 100);
                Console.WriteLine(welcomeMessage);
                input = Console.ReadLine();
                input = input.ToLower().Trim('"');
                if (input == "q" || input == "quit")
                {
                    break;
                }
                else
                {
                    var timer = Stopwatch.StartNew();


                    powerpoint = PowerpointFactory.GetPowerpoint(input);
                    scanner    = IssueScannerFactory.GetIssueScanner(powerpoint);
                    loader.start();
                    scanner.Scan();

                    timer.Stop();
                    loader.stop();
                    loader.Task.Wait();
                    Console.Clear();

                    Dictionary <string, SlideModel> slides = (Dictionary <string, SlideModel>)powerpoint.slides;

                    foreach (KeyValuePair <string, SlideModel> slide in slides)
                    {
                        if (slide.Value.Issues.Count != 0)
                        {
                            slide.Value.Issues.ForEach(x => Console.WriteLine($"{x.GetType()} {x.Description}"));
                        }
                        else
                        {
                            Console.WriteLine($"{slide.Value.slideId} has no issues");
                        }
                    }

                    Console.WriteLine($"Took {timer.Elapsed.TotalSeconds} seconds to scan");
                    Console.WriteLine("Press enter to continue...");
                    Console.ReadLine();
                }
            }
        }
        public void AllAutoTransitionIssuesFound(IPowerpoint power, int res)
        {
            Console.WriteLine(getFileDir("Presentation.pptx"));

            IIssueScanner scanner = IssueScannerFactory.GetIssueScanner(power);

            scanner.Scan();
            Dictionary <string, SlideModel> slides = (Dictionary <string, SlideModel>)power.slides;
            int count = 0;

            foreach (KeyValuePair <string, SlideModel> slide in slides)
            {
                slide.Value.Issues.ForEach(x => { if (x.GetType() == typeof(AutoTransitionIssue))
                                                  {
                                                      count++; Console.WriteLine(x.Description);
                                                  }
                                           });
            }

            Assert.AreEqual(res, count);
        }
 public void Setup()
 {
     powerpoint = PowerpointFactory.GetPowerpoint("C:\\Users\\conta\\OneDrive\\Desktop\\1045 Biology of mating, Juliana Rangel, 27 June 2019.pptx");
     scanner    = IssueScannerFactory.GetIssueScanner(powerpoint);
 }