Beispiel #1
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");
 }
Beispiel #2
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");
 }