예제 #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");
 }
예제 #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");
 }
예제 #3
0
 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");
 }
예제 #4
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");
 }
예제 #5
0
 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");
 }