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(); }
public CommentsController(ICommentsDataService commentsData) { this.commentsData = commentsData; }
public ValuesController(IArticlesDataService articlesDataService, ICommentsDataService commentsDataService) { _articlesDataService = articlesDataService; _commentsDataService = commentsDataService; }