コード例 #1
0
 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)});
 }
コード例 #2
0
        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.");
            }
        }
コード例 #3
0
 public EnvironmentConnection(CommandLineParser parser)
 {
     _parser = parser;
     _events = new Subject<EventType>();
 }
コード例 #4
0
 public EnvironmentConnection(CommandLineParser parser)
 {
     _parser = parser;
     _events = new Subject <EventType>();
 }