public CxQueryCollectionResponse GetQueryCollection(string sessionId) { CxQueryCollectionResponse result = _web_Service.GetQueryCollection(sessionId); new CxTeamMentor().TMFilterFor_CxQueryCollectionResponse(result); return(result); }
public CxQueryCollectionResponse GetQueryCollectionForLanguage(string sessionId, int projectType, long projectId) { CxQueryCollectionResponse result = _web_Service.GetQueryCollectionForLanguage(sessionId, projectType, projectId); new CxTeamMentor().TMFilterFor_CxQueryCollectionResponse(result); return(result); }
public void TMFilterFor_CxQueryCollectionResponse(CxQueryCollectionResponse cxQueryCollectionResponse) { IEnumerable<CxWSQuery> queries = from queryGroup in cxQueryCollectionResponse.QueryGroups from query in queryGroup.Queries select query; foreach (var query in queries) { query.Cwe = TeamMentorIdentifier + query.QueryId; // set the Cwe value to the negative of the QueryId query.Name += "_TM"; // Temp query name minor change } }
public void TMFilterFor_CxQueryCollectionResponse(CxQueryCollectionResponse cxQueryCollectionResponse) { IEnumerable <CxWSQuery> queries = from queryGroup in cxQueryCollectionResponse.QueryGroups from query in queryGroup.Queries select query; foreach (var query in queries) { query.Cwe = TeamMentorIdentifier + query.QueryId; // set the Cwe value to the negative of the QueryId query.Name += "_TM"; // Temp query name minor change } }