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

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

            _subcategoryService = new SubcategoryService(subcategoryRepository, categoryRepository, unitOfWork);
        }
        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);
        }
        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);
        }
Exemple #5
0
        public Connection(ITestOutputHelper output)
        {
            var serviceProvider = MockInitializer.GetIServiceProvider();
            var remoteServer    = (IRemoteServer <MemoryStream>)serviceProvider.GetService(typeof(IRemoteServer <MemoryStream>));

            remoteServer.ClientHandler += RemoteServer_ClientHandler;
            remoteServer.StartAsync().GetAwaiter().GetResult();

            this.RemoteServer        = remoteServer;
            this.MockServiceProvider = serviceProvider;
        }
Exemple #6
0
 public Server(ITestOutputHelper output)
 {
     this.MockServiceProvider = MockInitializer.GetIServiceProvider();
 }
Exemple #7
0
        public CommentRepositoryTests()
        {
            var context = MockInitializer.GetRutrackerContext();

            _commentRepository = new CommentRepository(context);
        }
        public LikeRepositoryTests()
        {
            var context = MockInitializer.GetRutrackerContext();

            _likeRepository = new LikeRepository(context);
        }
        public CategoryRepositoryTests()
        {
            var context = MockInitializer.GetRutrackerContext();

            _categoryRepository = new CategoryRepository(context);
        }
Exemple #10
0
        public FileRepositoryTests()
        {
            var context = MockInitializer.GetRutrackerContext();

            _fileRepository = new FileRepository(context);
        }
Exemple #11
0
        public TorrentRepositoryTests()
        {
            var context = MockInitializer.GetRutrackerContext();

            _torrentRepository = new TorrentRepository(context);
        }
 public ApplicationUserOrchTests()
 {
     applicationUserOrch = MockInitializer.GetApplicationUserOrch();
 }
Exemple #13
0
        static void Main(string[] args)
        {
            var x = MockInitializer.GetApplicationUserManager();

            Console.WriteLine(x);
        }