예제 #1
0
        public new void TestFixtureSetUp()
        {
            try
            {
                PlaylistItemDao = DaoFactory.GetPlaylistItemDao();
                VideoDao = DaoFactory.GetVideoDao();
            }
            catch (TypeInitializationException exception)
            {
                throw exception.InnerException;
            }

            //  Ensure that a User exists.
            User = new UserManager().CreateUser();
        }
예제 #2
0
        public new void TestFixtureSetUp()
        {
            try
            {
                PlaylistDao = DaoFactory.GetPlaylistDao();
            }
            catch (TypeInitializationException exception)
            {
                throw exception.InnerException;
            }

            User = new UserManager().CreateUser();
            Folder = User.Folders.First();

            //  Ensure Folder is lazily-loaded.
            NHibernateSessionManager.Instance.Evict(Folder);

            Video = Helpers.CreateUnsavedVideoWithId();
            new VideoManager().Save(Video);
        }