Esempio n. 1
0
        public List <ArtistResource> Editor(ArtistEditorResource artist)
        {
            var request = BuildRequest("editor");

            request.AddJsonBody(artist);
            return(Put <List <ArtistResource> >(request));
        }
Esempio n. 2
0
        public void should_be_able_to_update_multiple_artist()
        {
            GivenExistingArtist();

            var artist = Artist.All();

            var artistEditor = new ArtistEditorResource
            {
                QualityProfileId = 2,
                ArtistIds        = artist.Select(o => o.Id).ToList()
            };

            var result = Artist.Editor(artistEditor);

            result.Should().HaveCount(2);
            result.TrueForAll(s => s.QualityProfileId == 2).Should().BeTrue();
        }