//DI
        public ProjectUnitOfWork
        (
            ProjectDbContext _context,
            IArticleCommentRepository articleComments,
            IArticleLikeDisslikeRepository articleLikeDisslikes,
            IArticleRepository articles,
            IArticleCategoryRepository articleCategories,
            IAuthorizationAppealRepository authorizationAppeals,
            IChatCommentRepository chatComments,
            IChatRepository chats,
            IFavoriteRepository favorites,
            ITopicCommentRepository topicComments,
            ITopicRepository topics,
            IUserHistoryRepository userHistories,
            IUserRepository users

        ) : base(_context)

        {
            ArticleComments      = articleComments;
            ArticleLikeDisslikes = articleLikeDisslikes;
            Articles             = articles;
            ArticleCategories    = articleCategories;
            AuthorizationAppeals = authorizationAppeals;
            ChatComments         = chatComments;
            Chats         = chats;
            Favorites     = favorites;
            TopicComments = topicComments;
            Topics        = topics;
            UserHistories = userHistories;
            Users         = users;
        }
Exemplo n.º 2
0
 public TopicCommentController(ITopicCommentRepository topicCommentRepository)
 {
     _topicCommentRepository = topicCommentRepository;
 }