Exemple #1
0
        public AttachmentManager(DataCollectionSink dataSink, DataCollectionContext dataCollectionContext, TestPlatformLogger logger, TestPlatformEqtTrace eqtTrace, string reportDirectoryName, IFileHelper fileHelper, IDirectoryHelper directoryHelper, ICountDownEvent countDownEvent)
        {
            // Store input variabless
            _dataSink = dataSink;
            _dataCollectionContext = dataCollectionContext;
            _logger          = logger;
            _eqtTrace        = eqtTrace;
            _fileHelper      = fileHelper;
            _directoryHelper = directoryHelper;
            _countDownEvent  = countDownEvent;

            // Report directory to store the coverage reports.
            _reportDirectory = Path.Combine(Path.GetTempPath(), reportDirectoryName);

            // Register events
            _dataSink.SendFileCompleted += OnSendFileCompleted;
        }
Exemple #2
0
 public AttachmentManager(DataCollectionSink dataSink, DataCollectionContext dataCollectionContext, TestPlatformLogger logger, TestPlatformEqtTrace eqtTrace, ICountDownEvent countDownEvent)
     : this(dataSink,
            dataCollectionContext,
            logger,
            eqtTrace,
            Guid.NewGuid().ToString(),
            new FileHelper(),
            new DirectoryHelper(),
            countDownEvent)
 {
 }