예제 #1
0
 public void ArtistTestInitialize()
 {
     Console.Out.Write("ArtistTestInitialize called...");
     _artistRepository = new ArtistRepository();
     _artist = new Artist();
 }
예제 #2
0
 public void DisableArtist(Artist artist)
 {
     db.Artists.Add(artist).Active = false;
     db.SaveChanges();
 }
예제 #3
0
 public void InsertArtist(Artist artist)
 {
     db.Artists.Add(artist);
     db.SaveChanges();
 }
예제 #4
0
 public void DeleteArtist(Artist artist)
 {
     db.Artists.Remove(artist);
     db.SaveChanges();
 }