示例#1
0
 public NewsController(INewsStorage newsStorage, NewsBuilder newsBuilder, CommentBuilder commentBuilder, ICommentStorage commentStorage)
 {
     _newsStorage    = newsStorage;
     _newsBuilder    = newsBuilder;
     _commentBuilder = commentBuilder;
     _commentStorage = commentStorage;
 }
示例#2
0
 public WebApiController(ITypeInfoStorage typeInfoStorage, IArticleStorage articleStorage, ICaseInfoStorage caseInfoStorage, ICommentStorage commentStorage
                         , IBannerStorage bannerStorage, IIntentionStorage intentionStorage)
 {
     m_TypeInfoStorage  = typeInfoStorage;
     m_ArticleStorage   = articleStorage;
     m_CaseInfoStorage  = caseInfoStorage;
     m_CommentStorage   = commentStorage;
     m_BannerStorage    = bannerStorage;
     m_IntentionStorage = intentionStorage;
 }
示例#3
0
 public CommentLogic(ICommentStorage commentStorage)
 {
     _commentStorage = commentStorage;
 }
示例#4
0
 public PublicationService(IDataContext dataContext)
 {
     articleStorage    = dataContext.ArticleStorage;
     disciplineStorage = dataContext.DisciplineStorage;
     commentStorage    = dataContext.CommentStorage;
 }
示例#5
0
 public CommentBuilder(ICommentRepository commentRepository, ICommentStorage commentStorage)
 {
     _commentRepository = commentRepository;
     _commentStorage    = commentStorage;
 }
示例#6
0
 public PublicationService(IDataContext dataContext)
 {
     articleStorage = dataContext.ArticleStorage;
     disciplineStorage = dataContext.DisciplineStorage;
     commentStorage = dataContext.CommentStorage;
 }