Ejemplo n.º 1
0
 public HistoryRepositoryTests()
 {
     _context           = new PartyTubeDbContextMock();
     _appSettings       = new AppSettings();
     _videoRepository   = new VideoRepository(_context.Context);
     _historyRepository = new HistoryRepository(_context.Context, _appSettings, _videoRepository);
 }
Ejemplo n.º 2
0
        public NowPlayingRepositoryTests()
        {
            _context                   = new PartyTubeDbContextMock();
            _videoRepository           = new VideoRepository(_context.Context);
            _currentPlaylistRepository = new CurrentPlaylistRepository(_context.Context, _videoRepository);
            var appSettings = new Mock <AppSettings>();

            _historyRepository = new HistoryRepository(_context.Context, appSettings.Object, _videoRepository);
            _repository        = new NowPlayingRepository(_context.Context,
                                                          _videoRepository,
                                                          _currentPlaylistRepository,
                                                          _historyRepository);
        }
 public CurrentPlaylistRepositoryTests()
 {
     _context         = new PartyTubeDbContextMock();
     _videoRepository = new VideoRepository(_context.Context);
     _repository      = new CurrentPlaylistRepository(_context.Context, _videoRepository);
 }
Ejemplo n.º 4
0
 public VideoRepositoryTests()
 {
     _context         = new PartyTubeDbContextMock();
     _videoRepository = new VideoRepository(_context.Context);
 }