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); }
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 ShareCodeController(ILog logger, ISession session, IManagerFactory managerFactory) : base(logger, session) { ShareCodeManager = managerFactory.GetShareCodeManager(); PlaylistManager = managerFactory.GetPlaylistManager(); }
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 IShareCodeManager GetShareCodeManager(ISession session) { return ShareCodeManager ?? (ShareCodeManager = new ShareCodeManager(Logger, DaoFactory.GetShareCodeDao(session))); }
public IShareCodeManager GetShareCodeManager() { return(ShareCodeManager ?? (ShareCodeManager = new ShareCodeManager(Logger, DaoFactory.GetShareCodeDao()))); }