Esempio n. 1
0
        public void TryFilter_Operator_Like()
        {
            object request = "[{\"operator\":\"like\",\"value\":\"DZubak\",\"property\":\"login\"}]";

            Filter filter = converter.ConvertFrom(request) as Filter;

            var result = db.Users
                         .FilterBy(filter)
                         .ToList();

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Count() == 1);
        }