Exemplo n.º 1
0
 public VideoController()
 {
     try
     {
         VideoDao = new VideoDao();
     }
     catch (TypeInitializationException exception)
     {
         Logger.Error(exception.InnerException);
         throw exception.InnerException;
     }
 }
Exemplo n.º 2
0
 public VideoController()
 {
     try
     {
         VideoDao = new VideoDao();
     }
     catch (TypeInitializationException exception)
     {
         Logger.Error(exception.InnerException);
         throw exception.InnerException;
     }
 }
Exemplo n.º 3
0
        public new void TestFixtureSetUp()
        {
            try
            {
                VideoDao = DaoFactory.GetVideoDao();
            }
            catch (TypeInitializationException exception)
            {
                throw exception.InnerException;
            }

            Helpers.CreateUser();
        }
Exemplo n.º 4
0
        public new void TestFixtureSetUp()
        {
            try
            {
                VideoDao = DaoFactory.GetVideoDao();
            }
            catch (TypeInitializationException exception)
            {
                throw exception.InnerException;
            }

            new UserManager().CreateUser();
        }
Exemplo n.º 5
0
 public PlaylistManager()
 {
     PlaylistDao = DaoFactory.GetPlaylistDao();
     VideoDao    = DaoFactory.GetVideoDao();
 }
Exemplo n.º 6
0
 public VideoManager()
 {
     VideoDao = DaoFactory.GetVideoDao();
 }
Exemplo n.º 7
0
 public PlaylistItemManager()
 {
     PlaylistItemDao = DaoFactory.GetPlaylistItemDao();
     VideoDao = DaoFactory.GetVideoDao();
 }
Exemplo n.º 8
0
 public VideoManager(ILog logger, IVideoDao videoDao)
     : base(logger)
 {
     VideoDao = videoDao;
 }
Exemplo n.º 9
0
 public IVideoDao GetVideoDao()
 {
     return(VideoDao ?? (VideoDao = new VideoDao(Session)));
 }
Exemplo n.º 10
0
 public PlaylistManager(ILog logger, IPlaylistDao playlistDao, IVideoDao videoDao)
     : base(logger)
 {
     PlaylistDao = playlistDao;
     VideoDao    = videoDao;
 }
Exemplo n.º 11
0
 public VideoManager(ILog logger, IVideoDao videoDao)
     : base(logger)
 {
     VideoDao = videoDao;
 }
Exemplo n.º 12
0
 public IVideoDao GetVideoDao()
 {
     return VideoDao ?? (VideoDao = new VideoDao(Session));
 }
Exemplo n.º 13
0
 public PlaylistItemManager(ILog logger, IPlaylistItemDao playlistItemDao, IVideoDao videoDao)
     : base(logger)
 {
     PlaylistItemDao = playlistItemDao;
     VideoDao = videoDao;
 }
Exemplo n.º 14
0
 public SimpleVideoService(IConnectionCreater connectionCreater)
 {
     videoDao = new SimpleVideoDao(connectionCreater);
 }
        public new void TestFixtureSetUp()
        {
            try
            {
                PlaylistItemDao = DaoFactory.GetPlaylistItemDao();
                VideoDao = DaoFactory.GetVideoDao();
            }
            catch (TypeInitializationException exception)
            {
                throw exception.InnerException;
            }

            //  Ensure that a User exists.
            User = Helpers.CreateUser();
        }
Exemplo n.º 16
0
 public VideoBusiness(IBaseDataManager <Video> baseDataManager, IVideoDao videoDao)
     : base(baseDataManager)
 {
     _baseDataManager = baseDataManager;
     _videoDao        = videoDao;
 }
Exemplo n.º 17
0
 private VideoService()
 {
     _videoDao = new VideoSqlMapDao();
 }
Exemplo n.º 18
0
 public VideoManager()
 {
     VideoDao = DaoFactory.GetVideoDao();
 }
Exemplo n.º 19
0
 public VideoManager(IVideoDao videoDao)
 {
     _videoDao = videoDao ?? throw new ArgumentNullException(nameof(videoDao));
 }