Skip to content

Commit

Permalink
Add begin-area and end-area to artist.
Browse files Browse the repository at this point in the history
  • Loading branch information
wo80 committed Nov 15, 2021
1 parent 55f394b commit 680f815
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Hqub.MusicBrainz/Hqub.MusicBrainz.API.Test/ArtistTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ public void TestArtistArea()

Assert.IsNotNull(area.IsoCodes);
Assert.AreEqual(1, area.IsoCodes.Count);

area = artist.BeginArea;

Assert.IsNotNull(area);
Assert.AreEqual("04e60741-b1ae-4078-80bb-ffe8ae643ea7", area.Id);
Assert.AreEqual("Duluth", area.Name);
}

[Test]
Expand Down
12 changes: 12 additions & 0 deletions Hqub.MusicBrainz/Hqub.MusicBrainz.API/Entities/Artist.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ public partial class Artist
[DataMember(Name = "area")]
public Area Area { get; set; }

/// <summary>
/// Gets or sets the begin area.
/// </summary>
[DataMember(Name = "begin-area")]
public Area BeginArea { get; set; }

/// <summary>
/// Gets or sets the end area.
/// </summary>
[DataMember(Name = "end-area")]
public Area EndArea { get; set; }

/// <summary>
/// Gets or sets the country.
/// </summary>
Expand Down

0 comments on commit 680f815

Please sign in to comment.