Beispiel #1
0
 public WorkoutController(
     IWorkoutService workoutService,
     IWorkoutPlanService workoutPlanService,
     IExecutedWorkoutService executedWorkoutService,
     IWorkoutDTOAdapter workoutDTOAdapter)
 {
     _workoutService         = workoutService ?? throw new ArgumentNullException(nameof(workoutService));
     _workoutPlanService     = workoutPlanService ?? throw new ArgumentNullException(nameof(workoutPlanService));
     _executedWorkoutService = executedWorkoutService ?? throw new ArgumentNullException(nameof(executedWorkoutService));
     _workoutDTOAdapter      = workoutDTOAdapter ?? throw new ArgumentNullException(nameof(workoutDTOAdapter));
 }
 public WorkoutPlanService(
     IWorkoutService workoutService,
     IExecutedWorkoutService executedWorkoutService,
     IUserService userService,
     IExerciseAmountRecommendationService recommendationService)
 {
     _workoutService         = workoutService ?? throw new ArgumentNullException(nameof(workoutService));
     _executedWorkoutService = executedWorkoutService ?? throw new ArgumentNullException(nameof(executedWorkoutService));
     _recommendationService  = recommendationService ?? throw new ArgumentNullException(nameof(recommendationService));
     _userService            = userService ?? throw new ArgumentNullException(nameof(userService));
 }
 public UsersController(
     IUserService userService,
     IExecutedWorkoutService executedWorkoutService) : base(userService)
 {
     _executedWorkoutService = executedWorkoutService ?? throw new ArgumentNullException(nameof(executedWorkoutService));
 }
Beispiel #4
0
 public ExecutedWorkoutController(IExecutedWorkoutService executedWorkoutService)
 {
     _executedWorkoutService = executedWorkoutService ?? throw new ArgumentNullException("executedWorkoutService");
 }
Beispiel #5
0
 public AnalyticsService(IExecutedWorkoutService executedWorkoutService, ITargetAreaService targetAreaService)
 {
     _executedWorkoutService = executedWorkoutService ?? throw new ArgumentNullException(nameof(executedWorkoutService));
     _targetAreaService      = targetAreaService ?? throw new ArgumentNullException(nameof(targetAreaService));
 }