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); }
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; }
public Server(ITestOutputHelper output) { this.MockServiceProvider = MockInitializer.GetIServiceProvider(); }
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); }
public FileRepositoryTests() { var context = MockInitializer.GetRutrackerContext(); _fileRepository = new FileRepository(context); }
public TorrentRepositoryTests() { var context = MockInitializer.GetRutrackerContext(); _torrentRepository = new TorrentRepository(context); }
public ApplicationUserOrchTests() { applicationUserOrch = MockInitializer.GetApplicationUserOrch(); }
static void Main(string[] args) { var x = MockInitializer.GetApplicationUserManager(); Console.WriteLine(x); }