Exemplo n.º 1
0
        public void Can_hit_endpoint()
        {
            ReleaseByTagTop tags = Api <ReleaseByTagTop> .Get
                                   .WithParameter("tags", "rock")
                                   .Please();

            Assert.That(tags, Is.Not.Null);
            Assert.That(tags.TaggedReleases.Count, Is.GreaterThan(0));
            Assert.That(tags.Type, Is.EqualTo(ItemType.release));
            Assert.That(tags.TaggedReleases.FirstOrDefault().Release.Title, Is.Not.Empty);
        }
Exemplo n.º 2
0
        public void Can_hit_endpoint_with_paging()
        {
            ReleaseByTagTop artistBrowse = Api <ReleaseByTagTop> .Get
                                           .WithParameter("tags", "rock")
                                           .WithParameter("page", "2")
                                           .WithParameter("pageSize", "20")
                                           .Please();

            Assert.That(artistBrowse, Is.Not.Null);
            Assert.That(artistBrowse.Page, Is.EqualTo(2));
            Assert.That(artistBrowse.PageSize, Is.EqualTo(20));
        }