Exemplo n.º 1
0
        protected void CopyToOptions (MusicArtistOptions options)
        {
            base.CopyToOptions (options);

            options.ArtistDiscographyUri = ArtistDiscographyUri;
            options.Genres = new List<string> (Genres);
        }
Exemplo n.º 2
0
        public new MusicArtistOptions GetOptions()
        {
            var options = new MusicArtistOptions();

            CopyToOptions(options);
            return(options);
        }
Exemplo n.º 3
0
        protected void CopyToOptions(MusicArtistOptions options)
        {
            base.CopyToOptions(options);

            options.ArtistDiscographyUri = ArtistDiscographyUri;
            options.Genres = new List <string> (Genres);
        }
Exemplo n.º 4
0
 MusicArtist ArtistProvider (string parentId, MusicArtistOptions options)
 {
     return new MusicArtist (GetId (), parentId, options);
 }
Exemplo n.º 5
0
 static void AssertMusicArtist (MusicArtist musicArtist, MusicArtistOptions options)
 {
     AssertPerson (musicArtist, options);
 }
Exemplo n.º 6
0
 static void SetMusicArtistOptions (MusicArtistOptions options)
 {
     SetPersonOptions (options);
     options.ArtistDiscographyUri = new Uri ("http://34");
 }
Exemplo n.º 7
0
 public void MusicArtistInstantiation ()
 {
     var options = new MusicArtistOptions ();
     SetMusicArtistOptions (options);
     var music_artist = new MusicArtist ("-1", "-1", options);
     AssertMusicArtist (music_artist, options);
     AssertMusicArtist (music_artist, music_artist.GetOptions ());
 }
Exemplo n.º 8
0
 public new MusicArtistOptions GetOptions ()
 {
     var options = new MusicArtistOptions ();
     CopyToOptions (options);
     return options;
 }
Exemplo n.º 9
0
 public MusicArtist (string id, string parentId, MusicArtistOptions options)
     : base (id, parentId, options)
 {
     ArtistDiscographyUri = options.ArtistDiscographyUri;
     Genres = Helper.MakeReadOnlyCopy (options.Genres);
 }
Exemplo n.º 10
0
 public MusicArtist(string id, string parentId, MusicArtistOptions options)
     : base(id, parentId, options)
 {
     ArtistDiscographyUri = options.ArtistDiscographyUri;
     Genres = Helper.MakeReadOnlyCopy(options.Genres);
 }