Exemple #1
0
        public void ListOrderByCreatedAt()
        {
            Webhook.Order orderDesc = Webhook.CreateOrder().ByCreatedAt().Desc();
            Webhook.Order orderAsc  = Webhook.CreateOrder().ByCreatedAt().Asc();

            List <Webhook> webhooksDesc = _paymill.WebhookService.ListAsync(null, orderDesc).Result.Data;
            List <Webhook> webhooksAsc  = _paymill.WebhookService.ListAsync(null, orderAsc).Result.Data;

            if (webhooksDesc.Count > 1 &&
                webhooksAsc.Count > 1)
            {
                Assert.AreNotEqual(webhooksDesc[0].Id, webhooksAsc[0].Id);
            }
        }