Exemplo n.º 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.");
 }
Exemplo n.º 2
0
 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.");
 }
Exemplo n.º 3
0
 public KeywordArticlesService(IKeywordArticleDbRepository keywordArticles, IUnitOfWork unitOfWork)
 {
     this.keywordArticles = keywordArticles;
     this.unitOfWork      = unitOfWork;
 }
Exemplo n.º 4
0
 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.");
 }
Exemplo n.º 5
0
 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.");
 }
Exemplo n.º 6
0
 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.");
 }