public RecipeService(IRecipeRepository repo, ITagRepository tagRepository, IAppliedTagRepository appliedTagRepository, IMapper mapper) { _repo = repo; _tagRepository = tagRepository; _appliedTagRepository = appliedTagRepository; _mapper = mapper; }
public static void Initialize() { DependencyService.Register <IUnitOfWork <long> > (UnitOfWork = new MemoryUnitOfWork <long>()); DependencyService.Register <IGameRepository> (GameRepository = new TestingGameRepository()); GameRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <IEvaluationRepository> (EvaluationRepository = new TestingEvaluationRepository()); EvaluationRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <IPlatformRepository> (PlatformRepository = new TestingPlatformRepository()); PlatformRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <ICompanyRepository> (CompanyRepository = new TestingCompanyRepository()); CompanyRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <ILanguageRepository> (LanguageRepository = new TestingLanguageRepository()); LanguageRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <IPersonRepository> (PersonRepository = new TestingPersonRepository()); PersonRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <ICommentRepository> (CommentRepository = new TestingCommentRepository()); CommentRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <IEventRepository> (EventRepository = new TestingEventRepository()); EventRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <IInterviewRepository> (InterviewRepository = new TestingInterviewRepository()); InterviewRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <INewsRepository> (NewsRepository = new TestingNewsRepository()); NewsRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <IPreviewRepository> (PreviewRepository = new TestingPreviewRepository()); PreviewRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <IReviewRepository> (ReviewRepository = new TestingReviewRepository()); ReviewRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <ITagRepository> (TagRepository = new TestingTagRepository()); TagRepository.SetUnitOfWork(UnitOfWork); DependencyService.Register <IAppliedTagRepository> (AppliedTagRepository = new TestingAppliedTagRepository()); AppliedTagRepository.SetUnitOfWork(UnitOfWork); }
/// <summary> /// Initializes a new instance of the <see cref="jogosdaqui.Domain.AppliedTags. AppliedTagService"/> class. /// </summary> /// <param name="appliedtagRepository"> AppliedTag repository.</param> /// <param name="unitOfWork">Unit of work.</param> public AppliedTagService(IAppliedTagRepository appliedtagRepository, IUnitOfWork <long> unitOfWork) : base(appliedtagRepository, unitOfWork) { }