Example #1
0
        static void Main(string[] args)
        {
            IConsole console = new DisplayConsole();
            var configuration = new Configuration();

            var runner = new Runner(args,console,configuration);

            runner.Start();
            while (true)
            {
            }
        }
Example #2
0
        public Runner(string[] args, IConsole console, Configuration configuration)
        {
            _console = console;
            _configuration = configuration;

            _configuration.LoadConfigurationFrom(args);

            DisplayProgramConfiguration();

            WriteDummyResultsFile();

            SetupFileWatcher();
        }
Example #3
0
        void Display(TestResults results, Configuration configuration)
        {
            if (configuration.RunnerDisplay.Contains("File") || configuration.RunnerDisplay.Contains("Beacons"))
                SerializeResultsToFile(results);

            if (configuration.RunnerDisplay.Contains("Growl"))
            {
                IGrowlWrapper growl = new GrowlWrapper();
                var growlDisplay = new GrowlDisplay.GrowlDisplay(growl);

                growlDisplay.DisplayNotification(results);
            }
        }