Beispiel #1
0
        public new GenreOptions GetOptions()
        {
            var options = new GenreOptions();

            CopyToOptions(options);
            return(options);
        }
Beispiel #2
0
        protected void CopyToOptions(GenreOptions options)
        {
            base.CopyToOptions(options);

            options.Description     = Description;
            options.LongDescription = LongDescription;
        }
Beispiel #3
0
        protected void CopyToOptions (GenreOptions options)
        {
            base.CopyToOptions (options);

            options.Description = Description;
            options.LongDescription = LongDescription;
        }
Beispiel #4
0
 static void AssertGenre (Genre genre, GenreOptions options)
 {
     AssertContainer (genre, options);
     Assert.AreEqual (genre.LongDescription, options.LongDescription);
     Assert.AreEqual (genre.Description, options.Description);
 }
Beispiel #5
0
 static void SetGenreOptions (GenreOptions options)
 {
     SetContainerOptions (options);
     options.LongDescription = "23";
     options.Description = "24";
 }
Beispiel #6
0
 public void GenreInstantiation ()
 {
     var options = new GenreOptions ();
     SetGenreOptions (options);
     var genre = new Genre ("-1", "-1", options);
     AssertGenre (genre, options);
     AssertGenre (genre, genre.GetOptions ());
 }
Beispiel #7
0
 public Genre(string id, string parentId, GenreOptions options)
     : base(id, parentId, options)
 {
     Description     = options.Description;
     LongDescription = options.LongDescription;
 }
Beispiel #8
0
 public new GenreOptions GetOptions ()
 {
     var options = new GenreOptions ();
     CopyToOptions (options);
     return options;
 }
Beispiel #9
0
 public Genre (string id, string parentId, GenreOptions options)
     : base (id, parentId, options)
 {
     Description = options.Description;
     LongDescription = options.LongDescription;
 }