public async Task GetItems() { var cl = new Pr0grammClient(); var res = await cl.Item.GetItemsOlder( ItemFlags.SFW, ItemStatus.New, false, null, null, null, false, 1196866 ).ConfigureAwait(false); Assert.NotNull(res); Assert.That(res.Items, Is.Not.Empty); Assert.AreEqual(120, res.Items.Count); CollectionAssert.AllItemsAreNotNull(res.Items); CollectionAssert.AllItemsAreUnique(res.Items); _items = res.Items; // foreach (var item in _items) // System.Console.Error.WriteLine(item.ImageUrl); Assert.That(_items[0].ImageUrl, Does.EndWith(".jpg")); Assert.That(_items[1].ImageUrl, Does.EndWith(".jpg")); Assert.That(_items[2].ImageUrl, Does.EndWith(".mp4")); Assert.That(_items[10].ImageUrl, Is.Not.Null.And.Not.Empty); }
public async Task GetItems() { var cl = new Pr0grammClient(); var res = await cl.Item.GetItemsOlder(ItemFlags.SFW, ItemStatus.Promoted, false, null, null, null, false, 1196866).ConfigureAwait(false); Assert.NotNull(res); Assert.That(res.Items, Is.Not.Empty); Assert.AreEqual(120, res.Items.Count); CollectionAssert.AllItemsAreNotNull(res.Items); CollectionAssert.AllItemsAreUnique(res.Items); _items = res.Items; Assert.That(_items[0].ImageUrl, Does.EndWith(".png")); Assert.That(_items[1].ImageUrl, Does.EndWith(".webm")); Assert.That(_items[10].ImageUrl, Is.Not.Null.And.Not.Empty); }
public async Task GetItems() { var cl = new Pr0grammClient(); var res = await cl.Item.GetItemsOlder(ItemFlags.SFW, ItemStatus.Promoted, false, null, null, null, false, 1196866).ConfigureAwait(false); Assert.NotNull(res); Assert.That(res.Items, Is.Not.Empty); Assert.AreEqual(120, res.Items.Count); CollectionAssert.AllItemsAreNotNull(res.Items); CollectionAssert.AllItemsAreUnique(res.Items); _items = res.Items; Assert.That(_items[0].ImageUrl, Does.EndWith(".png")); Assert.That(_items[1].ImageUrl, Does.EndWith(".webm")); Assert.That(_items[10].ImageUrl, Is.Not.Null.And.Not.Empty); }