public void TestSimpleQuery() { var query = folder.CreateQuery(); var result = textContentProvider.Execute(query) as IEnumerable <TextContent>; Assert.IsNotNull(result); Assert.AreEqual(2, result.Count()); query = folder.CreateQuery().WhereEquals("UserKey", "userkeY1"); result = textContentProvider.Execute(query) as IEnumerable <TextContent>; Assert.AreEqual(1, result.Count()); query = folder.CreateQuery().WhereBetweenOrEqual("UtcCreationDate", DateTime.UtcNow.AddMinutes(-10), DateTime.UtcNow); result = textContentProvider.Execute(query) as IEnumerable <TextContent>; Assert.AreEqual(2, result.Count()); query = folder.CreateQuery().WhereEquals("Published", true); result = textContentProvider.Execute(query) as IEnumerable <TextContent>; Assert.AreEqual(2, result.Count()); query = folder.CreateQuery().WhereNotEquals("UserKey", "userkeY1"); result = textContentProvider.Execute(query) as IEnumerable <TextContent>; Assert.AreEqual(1, result.Count()); }