예제 #1
0
        public CategoryServiceTests()
        {
            var categoryRepository = MockInitializer.GetCategoryRepository();
            var unitOfWork         = MockInitializer.GetUnitOfWork();

            _categoryService = new CategoryService(categoryRepository, unitOfWork);
        }
예제 #2
0
        public SubcategoryServiceTests()
        {
            var subcategoryRepository = MockInitializer.GetSubcategoryRepository();
            var categoryRepository    = MockInitializer.GetCategoryRepository();
            var unitOfWork            = MockInitializer.GetUnitOfWork();

            _subcategoryService = new SubcategoryService(subcategoryRepository, categoryRepository, unitOfWork);
        }
예제 #3
0
        public CommentServiceTests()
        {
            var commentRepository = MockInitializer.GetCommentRepository();
            var torrentRepository = MockInitializer.GetTorrentRepository();
            var likeRepository    = MockInitializer.GetLikeRepository();
            var unitOfWork        = MockInitializer.GetUnitOfWork();

            _commentService = new CommentService(commentRepository, torrentRepository, likeRepository, unitOfWork);
        }
예제 #4
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);
        }