public void TicketSearchByTicketAnonymousType()
{
var res = api.Search.SearchFor<Ticket>("my printer is on fire");
Assert.IsTrue(res != null);
Assert.Greater(res.Results.Count, 10);
Assert.IsTrue(!string.IsNullOrEmpty(res.Results[0].Subject));
var noRes = api.Search.SearchFor<User>("my printer is on fire");
Assert.IsTrue(noRes != null);
Assert.IsTrue(noRes.Results.Count == 0);
res = api.Search.SearchFor<Ticket>("my printer is on fire", perPage: 10);
Assert.IsTrue(res != null);
Assert.AreEqual(res.Results.Count, 10);
Assert.AreEqual(res.Page, 1);
Assert.IsTrue(res.Results[0] is Ticket);
}