Exemplo n.º 1
0
 public void AddAlbum_sets_band_property_on_album()
 {
     var band = new BandModel();
     var album = new Album();
     band.AddAlbum(album);
     Assert.AreSame(band, album.Band);
 }
Exemplo n.º 2
0
 public virtual Band AddAlbum(Album album)
 {
     album.Band = this;
     Albums.Add(album);
     return this;
 }