public List <ArtistResource> Editor(ArtistEditorResource artist) { var request = BuildRequest("editor"); request.AddJsonBody(artist); return(Put <List <ArtistResource> >(request)); }
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(); }