public ConsoleBootstrapper(EnvironmentConnection connection, CommandLineParser parser) { _connection = connection; _parser = parser; _boot = new Bootstrapper(new List<INinjectModule>() { new VisualMutatorModule(), new ConsoleInfrastructureModule(), new FakeViewsModule(), new ConsoleNinjectModule(connection)}); }
private static void Main(string[] args) { Console.WriteLine("Started VisualMutator.Console with params: "+ args.MakeString()); if (args.Length >= 5) { var parser = new CommandLineParser(); parser.ParseFrom(args); var connection = new EnvironmentConnection(parser); var boot = new ConsoleBootstrapper(connection, parser); boot.Initialize().Wait(); } else { Console.WriteLine("Too few parameters."); } }
public EnvironmentConnection(CommandLineParser parser) { _parser = parser; _events = new Subject<EventType>(); }
public EnvironmentConnection(CommandLineParser parser) { _parser = parser; _events = new Subject <EventType>(); }