Пример #1
0
        public CommentsController(ICommentsDataService commentsData, IMappingService mappingService)
        {
            if (commentsData == null)
            {
                throw new ArgumentNullException(nameof(commentsData));
            }

            if (mappingService == null)
            {
                throw new ArgumentNullException(nameof(mappingService));
            }

            this.commentsData   = commentsData;
            this.mappingService = mappingService;
        }
 public CommentsController(ICommentsDataService commentsDataService, IUserDataService userDataService)
 {
     this.commentsDataService = commentsDataService;
     this.userDataService     = userDataService;
 }
 public void Init()
 {
     this.objectFactory  = new TestObjectFactory();
     this.commentService = objectFactory.GetCommentsService();
     this.userService    = objectFactory.GetUserService();
 }
Пример #4
0
 public CommentsController(ICommentsDataService commentsData)
 {
     this.commentsData = commentsData;
 }
Пример #5
0
 public ValuesController(IArticlesDataService articlesDataService, ICommentsDataService commentsDataService)
 {
     _articlesDataService = articlesDataService;
     _commentsDataService = commentsDataService;
 }