Example #1
0
 public InstrumentCommand(IServiceProvider serviceProvider,
                          VerbosityOption verbosityOption,
                          WorkingDirectoryOption workingDirectoryOption,
                          ParentDirectoryOption parentDirOption,
                          IncludeAssembliesPatternOption includeAssembliesOption,
                          ExcludeAssembliesPatternOption excludeAssembliesOption,
                          IncludeSourcesPatternOption includeSourceOption,
                          ExcludeSourcesPatternOption excludeSourceOption,
                          IncludeTestsPatternOption includeTestsOption,
                          ExcludeTestsPatternOption excludeTestsOption,
                          HitsDirectoryOption hitsDirectoryOption,
                          CoverageFileOption coverageFileOption)
 {
     _serviceProvider         = serviceProvider;
     _verbosityOption         = verbosityOption;
     _workingDirectoryOption  = workingDirectoryOption;
     _parentDirOption         = parentDirOption;
     _includeAssembliesOption = includeAssembliesOption;
     _excludeAssembliesOption = excludeAssembliesOption;
     _includeSourceOption     = includeSourceOption;
     _excludeSourceOption     = excludeSourceOption;
     _includeTestsOption      = includeTestsOption;
     _excludeTestsOption      = excludeTestsOption;
     _hitsDirectoryOption     = hitsDirectoryOption;
     _coverageFileOption      = coverageFileOption;
 }
Example #2
0
        public InstrumentCommand(IServiceProvider serviceProvider,
                                 VerbosityOption verbosityOption,
                                 WorkingDirectoryOption workingDirectoryOption,
                                 ParentDirectoryOption parentDirOption,
                                 IncludeAssembliesPatternOption includeAssembliesOption,
                                 ExcludeAssembliesPatternOption excludeAssembliesOption,
                                 IncludeSourcesPatternOption includeSourceOption,
                                 ExcludeSourcesPatternOption excludeSourceOption,
                                 IncludeTestsPatternOption includeTestsOption,
                                 ExcludeTestsPatternOption excludeTestsOption,
                                 HitsDirectoryOption hitsDirectoryOption,
                                 CoverageFileOption coverageFileOption)
            : base(_name, _description)
        {
            _serviceProvider         = serviceProvider;
            _workingDirectoryOption  = workingDirectoryOption;
            _parentDirOption         = parentDirOption;
            _includeAssembliesOption = includeAssembliesOption;
            _excludeAssembliesOption = excludeAssembliesOption;
            _includeSourceOption     = includeSourceOption;
            _excludeSourceOption     = excludeSourceOption;
            _includeTestsOption      = includeTestsOption;
            _excludeTestsOption      = excludeTestsOption;
            _hitsDirectoryOption     = hitsDirectoryOption;
            _coverageFileOption      = coverageFileOption;

            Options = new IOption[]
            {
                verbosityOption,
                workingDirectoryOption,
                parentDirOption,
                includeAssembliesOption,
                excludeAssembliesOption,
                includeSourceOption,
                excludeSourceOption,
                includeTestsOption,
                excludeTestsOption,
                hitsDirectoryOption,
                coverageFileOption
            };
        }