Exemple #1
0
 public AddTestModuleCommand(IVBE vbe, RubberduckParserState state, ITestCodeGenerator codeGenerator)
     : base(LogManager.GetCurrentClassLogger())
 {
     Vbe            = vbe;
     _state         = state;
     _codeGenerator = codeGenerator;
 }
 public AddTestComponentCommand(
     IVBE vbe,
     RubberduckParserState state,
     ITestCodeGenerator codeGenerator,
     IVbeEvents vbeEvents)
     : base(vbe, state, codeGenerator, vbeEvents)
 {
     AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
 }
Exemple #3
0
 public AddTestMethodExpectedErrorCommand(
     IVBE vbe,
     RubberduckParserState state,
     IRewritingManager rewritingManager,
     ITestCodeGenerator codeGenerator,
     IVbeEvents vbeEvents)
     : base(vbe, state, rewritingManager, codeGenerator, vbeEvents)
 {
     MethodGenerator = codeGenerator.GetNewTestMethodCodeErrorExpected;
 }
Exemple #4
0
 public AddTestComponentCommand(
     IVBE vbe,
     RubberduckParserState state,
     ITestCodeGenerator codeGenerator,
     IVbeEvents vbeEvents,
     IProjectsProvider projectsProvider)
     : base(vbe, state, codeGenerator, vbeEvents, projectsProvider)
 {
     _projectsProvider = projectsProvider;
     AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
 }
Exemple #5
0
        public AddTestMethodCommand(
            IVBE vbe,
            RubberduckParserState state,
            ITestCodeGenerator codeGenerator,
            IVbeEvents vbeEvents)
            : base(vbeEvents)
        {
            _vbe           = vbe;
            _state         = state;
            _codeGenerator = codeGenerator;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
Exemple #6
0
        public AddTestModuleCommand(
            IVBE vbe,
            RubberduckParserState state,
            ITestCodeGenerator codeGenerator,
            IVbeEvents vbeEvents,
            IProjectsProvider projectsProvider)
            : base(vbeEvents)
        {
            Vbe               = vbe;
            _state            = state;
            _codeGenerator    = codeGenerator;
            _projectsProvider = projectsProvider;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
Exemple #7
0
        public AddTestMethodBase(
            IVBE vbe,
            RubberduckParserState state,
            IRewritingManager rewritingManager,
            ITestCodeGenerator codeGenerator,
            IVbeEvents vbeEvents)
            : base(vbeEvents)
        {
            _vbe = vbe;
            _state = state;
            _testCodeGenerator = codeGenerator;
            _rewritingManager = rewritingManager;

            MethodGenerator = _testCodeGenerator.GetNewTestMethodCode;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
 public AddTestComponentCommand(IVBE vbe, RubberduckParserState state, ITestCodeGenerator codeGenerator)
     : base(vbe, state, codeGenerator)
 {
 }
 public AddTestMethodExpectedErrorCommand(IVBE vbe, RubberduckParserState state, ITestCodeGenerator codeGenerator) : base(LogManager.GetCurrentClassLogger())
 {
     _vbe           = vbe;
     _state         = state;
     _codeGenerator = codeGenerator;
 }