Example #1
0
 public CustomErrorService(IWebKantoraDbRepository <CustomError> customErrors, IUnitOfWork unitOfWork)
 {
     this.customErrors = customErrors ?? throw new ArgumentNullException("The custom errors Db repository cannot be null.");
     this.unitOfWork   = unitOfWork ?? throw new ArgumentNullException("The unit of work cannot be null.");
 }
 public MessageService(IWebKantoraDbRepository <Message> messages, IUnitOfWork unitOfWork)
 {
     this.messages   = messages ?? throw new ArgumentNullException("The messages Db repository cannot be null.");
     this.unitOfWork = unitOfWork ?? throw new ArgumentNullException("The unit of work cannot be null.");
 }
Example #3
0
 public KeywordArticlesService(IKeywordArticleDbRepository keywordArticles, IUnitOfWork unitOfWork)
 {
     this.keywordArticles = keywordArticles;
     this.unitOfWork      = unitOfWork;
 }
 public KeywordService(IWebKantoraDbRepository <Keyword> keywords, IUnitOfWork unitOfWork)
 {
     this.keywords   = keywords ?? throw new ArgumentNullException("The keywords Db repository cannot be null.");
     this.unitOfWork = unitOfWork ?? throw new ArgumentNullException("The unit of work cannot be null.");
 }
 public UserService(IWebKantoraDbRepository <User> users, IUnitOfWork unitOfWork)
 {
     this.users      = users ?? throw new ArgumentNullException("The users Db repository cannot be null.");
     this.unitOfWork = unitOfWork ?? throw new ArgumentNullException("The unit of work cannot be null.");
 }
 public ArticleService(IWebKantoraDbRepository <Article> articles, IUnitOfWork unitOfWork)
 {
     this.articles   = articles ?? throw new ArgumentNullException("The articles Db repository cannot be null.");
     this.unitOfWork = unitOfWork ?? throw new ArgumentNullException("The unit of work cannot be null.");
 }