Exemple #1
0
 public HomeController(MarkdownLoader markdownLoader, ITzdbRepository repository)
 {
     markdownBundle = markdownLoader.TryGetBundle("root");
     if (markdownBundle == null)
     {
         throw new ArgumentException("Couldn't get root bundle", nameof(markdownLoader));
     }
     this.repository = repository;
 }
 public TzValidateController(ITzdbRepository repository) =>
 this.repository = repository;
Exemple #3
0
 public TzdbController(ITzdbRepository tzdbRepository)
 {
     this.tzdbRepository = tzdbRepository;
 }