Ejemplo n.º 1
0
 public FileAssembler(Grammar grammar, ISegmentFactory segmentBuilder, IExecutableFactory executableBuilder)
 {
     this.executableBuilder = executableBuilder;
     this.segmentBuilder = segmentBuilder;
     this.ironyGrammar = grammar;
     this.ironyParser = new Parser(ironyGrammar);
 }
Ejemplo n.º 2
0
        public SyntaxBuilderTest()
        {
            this.executionChainingBuilder = new StringBuilder();
            this.executableFactory        = A.Fake <IExecutableFactory <ICustomExtension> >();

            this.testee = new SyntaxBuilder <ICustomExtension>(this.executableFactory);
        }
Ejemplo n.º 3
0
 public CliDispatcher(IExecutableInfoFactory executableInfoFactory, IHelpInfoFactory helpInfoFactory,
                      IExecutableFactory executableFactory, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
 {
     _executableInfoFactory = executableInfoFactory;
     _executableFactory     = executableFactory;
     _commandDispatcher     = commandDispatcher;
     _queryDispatcher       = queryDispatcher;
     _helpInfoFactory       = helpInfoFactory;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DecoratingExecutableFactory&lt;TExtension&gt;"/> class.
 /// </summary>
 /// <param name="decoratedExecutableFactory">The decorated executable factory.</param>
 public DecoratingExecutableFactory(IExecutableFactory <TExtension> decoratedExecutableFactory)
 {
     this.decoratedExecutableFactory = decoratedExecutableFactory;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SyntaxBuilder&lt;TExtension&gt;"/> class.
 /// </summary>
 /// <param name="executableFactory">The executable factory.</param>
 public SyntaxBuilder(IExecutableFactory <TExtension> executableFactory)
 {
     this.executableFactory = executableFactory;
     this.executables       = new Queue <IExecutable <TExtension> >();
 }