protected virtual void CreateArtists(UnitOfWork session) { Artist artist = null; MovieArtistLine line = MovieArtistLine.GetDirector(session); artist = CreateArtist(session, "James", "Cameron"); Avatar.AddArtist(artist, line); artist = CreateArtist(session, "Uwe", "Boll"); Postal.AddArtist(artist, MovieArtistLine.GetDirector(session)); }
public void Directors() { Assert.AreEqual("James Cameron", Avatar.Directors); var director = new Artist(Session, "Test", "Director"); Avatar.AddArtist(director, MovieArtistLine.GetDirector(Session)); Session.CommitChanges(); Assert.AreEqual("James Cameron, Test Director", Avatar.Directors); }
public void ArtistLine_FindDirector() { var line = MovieArtistLine.GetDirector(Session); Assert.IsNotNull(line); }