using FluentAssertions; using Lidarr.Api.V1.Artist; using Lidarr.Api.V1.Blocklist; using NUnit.Framework; namespace NzbDrone.Integration.Test.ApiTests { [TestFixture] public class BlocklistFixture : IntegrationTest { private ArtistResource _artist; [Test] [Ignore("Adding to blocklist not supported")] public void should_be_able_to_add_to_blocklist() { _artist = EnsureArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm"); Blocklist.Post(new BlocklistResource { ArtistId = _artist.Id, SourceTitle = "Blocklist - Album 1 [2015 FLAC]" }); } [Test] [Ignore("Adding to blocklist not supported")] public void should_be_able_to_get_all_blocklisted() { var result = Blocklist.GetPaged(0, 1000, "date", "desc"); result.Should().NotBeNull(); result.TotalRecords.Should().Be(1); result.Records.Should().NotBeNullOrEmpty(); } [Test] [Ignore("Adding to blocklist not supported")] public void should_be_able_to_remove_from_blocklist() { Blocklist.Delete(1); var result = Blocklist.GetPaged(0, 1000, "date", "desc"); result.Should().NotBeNull(); result.TotalRecords.Should().Be(0); } } }