Esempio n. 1
0
 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));
 }
Esempio n. 2
0
        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);
        }