public void Name() { var query = new Query(new MockAssetType()); var term = new FilterTerm(new MockAttributeDefinition("Name")); term.Exists(); query.Filter = term; var testMe = new QueryURLBuilder(query); Assert.AreEqual("Data/Mock?sel=&where=%2BMock.Name", testMe.ToString()); }
public void FilterExist() { var assetType = Instance.ApiClient.MetaModel.GetAssetType("Story"); var customFilter = new FilterTerm(assetType.GetAttributeDefinition("Timebox")); customFilter.Exists(); var query = new Query(assetType) { Filter = customFilter }; Instance.ApiClient.Services.Retrieve(query); }