public TestableDynamicCoverageDataCollector(
     IVanguardLocationProvider vanguardLocationProvider,
     IDynamicCoverageDataCollectorImpl impl,
     IEnvironment environment)
     : base(vanguardLocationProvider, impl, environment)
 {
 }
 internal DynamicCoverageDataCollector(
     IVanguardLocationProvider vanguardLocationProvider,
     IDynamicCoverageDataCollectorImpl dynamicCoverageDataCollectorImpl)
 {
     this.vanguardLocationProvider = vanguardLocationProvider;
     this.implementation           = dynamicCoverageDataCollectorImpl;
 }
Пример #3
0
 internal Vanguard(
     IVanguardLocationProvider vanguardLocationProvider,
     IVanguardCommandBuilder commandBuilder,
     IProcessJobObject processJobObject)
 {
     this.vanguardLocationProvider = vanguardLocationProvider;
     this.vanguardCommandBuilder   = commandBuilder;
     this.processJobObject         = processJobObject;
 }
Пример #4
0
        internal DynamicCoverageDataCollector(
            IVanguardLocationProvider vanguardLocationProvider,
            IDynamicCoverageDataCollectorImpl dynamicCoverageDataCollectorImpl,
            IEnvironment environment)
        {
            this.vanguardLocationProvider = vanguardLocationProvider;
            this.environment = environment;

            // Create DynamicCoverageDataCollectorImpl .ctor only when running on windows, because it has dependency on WinAPIs.
            if (dynamicCoverageDataCollectorImpl == null)
            {
                this.isWindowsOS = this.environment.OperatingSystem.Equals(PlatformOperatingSystem.Windows);
                if (this.isWindowsOS)
                {
                    this.implementation = new DynamicCoverageDataCollectorImpl();
                }
            }
            else
            {
                this.isWindowsOS    = true;
                this.implementation = dynamicCoverageDataCollectorImpl;
            }
        }