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());
		}
コード例 #2
0
        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());
        }
コード例 #3
0
        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);
        }