Esempio n. 1
0
 public CommandLineActionFactory(
     AssemblyModel model,
     Func <Type, object> objectFactory,
     TypeConverterCollection typeConverterCollection,
     MethodMapper methodMapper)
 {
     _assemblyModel           = model;
     _objectFactory           = objectFactory;
     _typeConverterCollection = typeConverterCollection;
     _methodMapper            = methodMapper;
 }
Esempio n. 2
0
        private static IReadOnlyCollection <CommandLineAction> ResolveActions(
            Func <Type, object> objectFactory,
            TypeConverterCollection typeConverters,
            CommandLineArgumentList commandLineArgs,
            AssemblyModel model)
        {
            var methodMapper = new MethodMapper(new ParameterMapper());

            return
                (new CommandLineActionFactory(
                     model, objectFactory, typeConverters, methodMapper)
                 .Resolve(commandLineArgs));
        }