public void Setup() { _auditVariablesRewriterMock = Substitute.For<IAuditVariablesRewriter>(); _rewrittenDocumentsStorageMock = Substitute.For<IRewrittenDocumentsStorage>(); _solutionRewriter = new SolutionRewriter(_rewrittenDocumentsStorageMock, _auditVariablesRewriterMock); }
public RoslynSolutionWatcher(DTE dte, Workspace workspace, ICoverageStore coverageStore, IRewrittenDocumentsStorage rewrittenDocumentsStorage, ITaskCoverageManager taskCoverageManager) { _dte = dte; _workspace = workspace; _coverageStore = coverageStore; _rewrittenDocumentsStorage = rewrittenDocumentsStorage; _taskCoverageManager = taskCoverageManager; }
public SolutionExplorer(IRewrittenDocumentsStorage rewrittenDocumentsStorage, Workspace myWorkspace) { _rewrittenDocumentsStorage = rewrittenDocumentsStorage; _myWorkspace = myWorkspace; var props = new Dictionary<string, string>(); props["CheckForSystemRuntimeDependency"] = "true"; var workspace = MSBuildWorkspace.Create(props); // TODO: Get rid of blocking a thread }
public SolutionRewriter(IRewrittenDocumentsStorage rewrittenDocumentsStorage, IAuditVariablesRewriter auditVariablesRewriter) { _rewrittenDocumentsStorage = rewrittenDocumentsStorage; _auditVariablesRewriter = auditVariablesRewriter; }