Exemplo n.º 1
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);
 }