Exemplo 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));
 }
Exemplo 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);
        }
Exemplo n.º 3
0
        public void ArtistLine_FindDirector()
        {
            var line = MovieArtistLine.GetDirector(Session);

            Assert.IsNotNull(line);
        }