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