public SentPostService( IMapper mapper, IMediator mediator, ISentPostRepository postRepository) { _mapper = mapper; _mediator = mediator; _postRepository = postRepository; }
public UnitOfWork(LeakDbContext db) { _db = db; _postRepository = new PostRepository(db); _sentPostRepository = new SentPostRepository(db); _blogRepository = new BlogRepository(db); _categoryRepository = new CategoryRepository(db); _trendingPostsSectionRepository = new SpecialPostsSectionRepository <TrendPostSection>(db); _interestingPostsSectionRepository = new SpecialPostsSectionRepository <InterestingPostSection>(db); _appUserRepository = new AppUserRepository(db); }