Пример #1
0
 public PlaylistController(ILog logger, ISession session, IManagerFactory managerFactory)
     : base(logger, session)
 {
     PlaylistManager  = managerFactory.GetPlaylistManager(session);
     UserManager      = managerFactory.GetUserManager(session);
     ShareCodeManager = managerFactory.GetShareCodeManager(session);
 }
Пример #2
0
 public PlaylistController(ILog logger, ISession session, IManagerFactory managerFactory)
     : base(logger, session)
 {
     PlaylistManager = managerFactory.GetPlaylistManager(session);
     UserManager = managerFactory.GetUserManager(session);
     ShareCodeManager = managerFactory.GetShareCodeManager(session);
 }
        public new void TestFixtureSetUp()
        {
            PlaylistController     = new PlaylistController(Logger, Session, ManagerFactory);
            PlaylistItemController = new PlaylistItemController(Logger, Session, ManagerFactory);

            ShareCodeManager = ManagerFactory.GetShareCodeManager(Session);
            UserManager      = ManagerFactory.GetUserManager(Session);
            PlaylistManager  = ManagerFactory.GetPlaylistManager(Session);
        }
Пример #4
0
        public new void TestFixtureSetUp()
        {
            try
            {
                PlaylistController     = new PlaylistController(Logger, Session, ManagerFactory);
                PlaylistItemController = new PlaylistItemController(Logger, Session, ManagerFactory);

                ShareCodeManager = ManagerFactory.GetShareCodeManager();
                UserManager      = ManagerFactory.GetUserManager();
                PlaylistManager  = ManagerFactory.GetPlaylistManager();
            }
            catch (TypeInitializationException exception)
            {
                throw exception.InnerException;
            }
        }
        public new void TestFixtureSetUp()
        {
            PlaylistController = new PlaylistController(Logger, Session, ManagerFactory);
            PlaylistItemController = new PlaylistItemController(Logger, Session, ManagerFactory);

            ShareCodeManager = ManagerFactory.GetShareCodeManager(Session);
            UserManager = ManagerFactory.GetUserManager(Session);
            PlaylistManager = ManagerFactory.GetPlaylistManager(Session);
        }
Пример #6
0
 public ShareCodeController(ILog logger, ISession session, IManagerFactory managerFactory)
     : base(logger, session)
 {
     ShareCodeManager = managerFactory.GetShareCodeManager();
     PlaylistManager  = managerFactory.GetPlaylistManager();
 }
Пример #7
0
 public IShareCodeManager GetShareCodeManager(ISession session)
 {
     return(ShareCodeManager ?? (ShareCodeManager = new ShareCodeManager(Logger, DaoFactory.GetShareCodeDao(session))));
 }
 public IShareCodeManager GetShareCodeManager()
 {
     return ShareCodeManager ?? (ShareCodeManager = new ShareCodeManager(Logger, DaoFactory.GetShareCodeDao()));
 }
        public new void TestFixtureSetUp()
        {
            try
            {
                PlaylistController = new PlaylistController(Logger, Session, ManagerFactory);
                PlaylistItemController = new PlaylistItemController(Logger, Session, ManagerFactory);

                ShareCodeManager = ManagerFactory.GetShareCodeManager();
                UserManager = ManagerFactory.GetUserManager();
                PlaylistManager = ManagerFactory.GetPlaylistManager();
            }
            catch (TypeInitializationException exception)
            {
                throw exception.InnerException;
            }
        }
 public IShareCodeManager GetShareCodeManager(ISession session)
 {
     return ShareCodeManager ?? (ShareCodeManager = new ShareCodeManager(Logger, DaoFactory.GetShareCodeDao(session)));
 }
Пример #11
0
 public ShareCodeController(ILog logger, ISession session, IManagerFactory managerFactory)
     : base(logger, session)
 {
     ShareCodeManager = managerFactory.GetShareCodeManager();
     PlaylistManager = managerFactory.GetPlaylistManager();
 }
Пример #12
0
 public IShareCodeManager GetShareCodeManager()
 {
     return(ShareCodeManager ?? (ShareCodeManager = new ShareCodeManager(Logger, DaoFactory.GetShareCodeDao())));
 }