static void Main(string[] args) { IConsole console = new DisplayConsole(); var configuration = new Configuration(); var runner = new Runner(args,console,configuration); runner.Start(); while (true) { } }
public Runner(string[] args, IConsole console, Configuration configuration) { _console = console; _configuration = configuration; _configuration.LoadConfigurationFrom(args); DisplayProgramConfiguration(); WriteDummyResultsFile(); SetupFileWatcher(); }
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); } }