public async Task EditArtistWithNewName_CreatesNewArtist() { var ack = await _restCollection.ToDictionary("name").GetItem("New artist").EditAsync(new RestItemData(new { Label = "New label" })); Assert.IsType <CreatedItemAcknowledgment>(ack); }
public async Task ArtistByIDWithSpecifiying_GetName_IsCorrect() { var obj = await _restCollection.ToDictionary("id").GetItem("123").GetDataAsync(null); Assert.Equal(TestRepositories.ArtistName, obj["Name"]); }