Exemplo n.º 1
0
        public SubcategoryServiceTests()
        {
            var subcategoryRepository = MockInitializer.GetSubcategoryRepository();
            var categoryRepository    = MockInitializer.GetCategoryRepository();
            var unitOfWork            = MockInitializer.GetUnitOfWork();

            _subcategoryService = new SubcategoryService(subcategoryRepository, categoryRepository, unitOfWork);
        }
Exemplo n.º 2
0
        public TorrentServiceTests()
        {
            var torrentRepository     = MockInitializer.GetTorrentRepository();
            var subcategoryRepository = MockInitializer.GetSubcategoryRepository();
            var fileStorageService    = MockInitializer.GetFileStorageService();
            var unitOfWork            = MockInitializer.GetUnitOfWork();

            _torrentService =
                new TorrentService(torrentRepository, subcategoryRepository, fileStorageService, unitOfWork);
        }