Inheritance: IHostEnviromentConnection
Beispiel #1
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Started VisualMutator.Console with params: " + args.MakeString());

            if (args.Length >= 5)
            {
                var parser = new CommandLineParser();
                if (Parser.Default.ParseArguments(args, parser))
                {
                    var connection = new EnvironmentConnection(parser);
                    var boot       = new ConsoleBootstrapper(connection, parser);
                    boot.Initialize().GetAwaiter().GetResult();
                }
                else
                {
                    //
                    // var str = options.LastParserState.Errors.Select(a=>a.ToString()).Aggregate((a, b) => a.ToString() + "n" + b.ToString());
                    Console.WriteLine("Invalid params string in options.: " + args);
                }
            }
            else
            {
                Console.WriteLine("Too few parameters.");
            }
        }
 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)});
 }
Beispiel #3
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)
     });
 }
Beispiel #4
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.");
            }
        }
Beispiel #5
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.");
            }
        }
 public ConsoleNinjectModule(EnvironmentConnection connection)
 {
     _connection = connection;
 }
 public ConsoleNinjectModule(EnvironmentConnection connection)
 {
     _connection = connection;
 }