Tests.SearchTests.SearchSortIsWorking C# (CSharp) Method

SearchSortIsWorking() private method

private SearchSortIsWorking ( ) : void
return void
        public void SearchSortIsWorking()
        {
            //desc asc 
            var res = api.Search.SearchFor<Ticket>("Effective", "created_at", "asc");
            Assert.IsTrue(res.Count > 2);
            var first = res.Results[0];
            var second = res.Results[1];
            Assert.That(second.CreatedAt, Is.GreaterThan(first.CreatedAt));

        }
    }