コード例 #1
0
ファイル: NewsController.cs プロジェクト: Ptize/NewsPortal
 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
ファイル: CommentBuilder.cs プロジェクト: Ptize/NewsPortal
 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;
 }