public void Initialize() { queryMacroParser = A.Fake<IQueryMacroParser>(); SetupQueryMacroParserFake(); shimContext = ShimsContext.Create(); tfsContext = new FakeTfsContext(shimContext); queryDefinition = new ShimQueryDefinition(); queryDefinition.QueryTextGet = () => "SELECT System.ID, System.Title from workitems"; SetupQueryShim(tfsContext); }
public QueryRunner(ITfsContext currentContext, IQueryMacroParser macroParser) { this.currentContext = currentContext; this.macroParser = macroParser; }