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

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

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

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