Esempio n. 1
0
 public GoalQueryWithCache(
     ICache cacheService,
     IGoalQuery goalQuery)
 {
     Cache = cacheService
             ?? throw new ArgumentNullException(nameof(cacheService));
     InnerGoalQuery = goalQuery
                      ?? throw new ArgumentNullException(nameof(goalQuery));
 }
Esempio n. 2
0
 public GoalService(
     IGoalCommand goalRepository,
     IGoalQuery goalQuery)
 {
     GoalRepository = goalRepository
                      ?? throw new ArgumentNullException(nameof(goalRepository));
     GoalQuery = goalQuery
                 ?? throw new ArgumentNullException(nameof(goalQuery));
 }