Beispiel #1
0
        public void TrySort_Dir_Asc()
        {
            object request = "[{\"property\":\"dateCreated\",\"direction\":\"ASC\"}]";

            Sort sort = converter.ConvertFrom(request) as Sort;

            var result = db
                         .Users
                         .SortBy(sort)
                         .ToList();

            Assert.IsNotNull(result);
            Assert.IsTrue(result.First().Login == "ABute");
        }