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"); }
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"); }
public CompleteWorkoutController(IMemberIdProvider memberIdProvider, IMemberService memberService, IMapper mapper, IPendingWorkoutService pendingWorkoutService, IModelViewFactory modelViewFactory, IDataModelFactory dataModelFactory) { this.memberIdProvider = memberIdProvider ?? throw new ArgumentException("MemberIdProvider cannot be null"); this.memberService = memberService ?? throw new ArgumentException("memberService cannot be null"); this.mapper = mapper ?? throw new ArgumentException("mapper cannot be null"); this.pendingWorkoutService = pendingWorkoutService ?? throw new ArgumentException("pendingWorkoutService cannot be null"); this.modelViewFactory = modelViewFactory ?? throw new ArgumentException("modelViewFactory cannot be null"); this.dataModelFactory = dataModelFactory ?? throw new ArgumentException("dataModelFactory cannot be null"); }
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"); }
public HomeController(IMemberService memberService, IWorkoutService workoutService, IModelViewFactory modelViewFactory) { this.memberService = memberService ?? throw new ArgumentException("Memeber service cannot be null"); this.workoutService = workoutService ?? throw new ArgumentException("workoutService cannot be null"); this.modelViewFactory = modelViewFactory ?? throw new ArgumentException("modelViewFactory cannot be null"); }