Esempio n. 1
0
 public ManagerController(IMapper mapper, IExerciseService exerciseService, IWorkoutInformationService workoutInformationService, IWeekScheduleService weekScheduleService, IModelViewFactory modelViewFactory)
 {
     this.mapper                    = mapper ?? throw new ArgumentException("Mapper cannot be null");
     this.exerciseService           = exerciseService ?? throw new ArgumentException("exerciseService cannot be null");
     this.workoutInformationService = workoutInformationService ?? throw new ArgumentException("workoutInformationService cannot be null");
     this.weekScheduleService       = weekScheduleService ?? throw new ArgumentException("weekScheduleService cannot be null");
     this.modelViewFactory          = modelViewFactory ?? throw new ArgumentException("modelViewFactory cannot be null");
 }
Esempio n. 2
0
 public ScheduleController(IMapper mapper, IWeekScheduleService weekScheduleService, IWorkoutInformationService workoutInformationService, IDailyWorkoutService dailyWorkoutService, IModelViewFactory modelViewFactory)
 {
     this.mapper = mapper ?? throw new ArgumentException("Mapper cannot be null");
     this.weekScheduleService       = weekScheduleService ?? throw new ArgumentException("weekScheduleService cannot be null");
     this.workoutInformationService = workoutInformationService ?? throw new ArgumentException("workoutInformationService cannot be null");
     this.dailyWorkoutService       = dailyWorkoutService ?? throw new ArgumentException("dailyWorkoutService cannot be null");
     this.modelViewFactory          = modelViewFactory ?? throw new ArgumentException("modelViewFactory cannot be null");
 }
Esempio n. 3
0
 public WorkoutController(IMapper mapper, IWorkoutInformationService workoutInformationService, IWeekScheduleService weekScheduleService, IDatetimeProvider datetimeProvider, IDailyWorkoutService dailyWorkoutService, IMemberIdProvider memberIdProvider, IMemberService memberService, IWorkoutService workoutService, IModelViewFactory modelViewFactory, IDataModelFactory dataModelFactory)
 {
     this.mapper = mapper ?? throw new ArgumentException("Mapper cannot be null");
     this.workoutInformationService = workoutInformationService ?? throw new ArgumentException("workoutInformationService cannot be null");
     this.weekScheduleService       = weekScheduleService ?? throw new ArgumentException("weekScheduleService cannot be null");
     this.datetimeProvider          = datetimeProvider ?? throw new ArgumentException("datetimeProvider cannot be null");
     this.dailyWorkoutService       = dailyWorkoutService ?? throw new ArgumentException("dailyWorkoutService cannot be null");
     this.memberIdProvider          = memberIdProvider ?? throw new ArgumentException("memberIdProvider cannot be null");
     this.memberService             = memberService ?? throw new ArgumentException("memberService cannot be null");
     this.workoutService            = workoutService ?? throw new ArgumentException("workoutService cannot be null");
     this.modelViewFactory          = modelViewFactory ?? throw new ArgumentException("modelViewFactory cannot be null");
     this.dataModelFactory          = dataModelFactory ?? throw new ArgumentException("dataModelFactory cannot be null");
 }
Esempio n. 4
0
 public PublicScheduleController(IMapper mapper, IWeekScheduleService weekScheduleService)
 {
     this.mapper = mapper ?? throw new ArgumentException("Mapper cannot be null");
     this.weekScheduleService = weekScheduleService ?? throw new ArgumentException("Mapper cannot be null");
 }