public void ToString_Returns_Correct_Value_With_Name() { //Arrange var ttf = new IdNameReference("foo"); //Act var ttfStr = ttf.ToString(); //Assert Assert.That(ttfStr, Is.EqualTo("\"foo\"")); Console.WriteLine(ttfStr); }
public void ToString_Returns_Correct_Value_With_Multiple_DefIds() { //Arrange var ttf = new IdNameReference(10, 16, 30); //Act var ttfStr = ttf.ToString(); //Assert Assert.That(ttfStr, Is.EqualTo("#10, #16, #30")); Console.WriteLine(ttfStr); }
internal AqlSearchRequest(string basePath, ISearchRequestFilter[] requestFilters, AqlQueryTypes aqlQueryType, IdNameReference typeToFind, string queryString, SearchControl searchControl) { this.BasePath = basePath; this.QueryType = aqlQueryType.GetStringValue(); this.QueryString = queryString; this.SearchControl = searchControl; this.RequestFilters = requestFilters; if (typeToFind != null) { this.ObjectTypeToFind = typeToFind.ToString(); } }