public ExercisesController(IExercisesService exercisesService, IWorkoutService workoutService, UserManager <ApplicationUser> userManager, IEquipmentService equipmentService) { this.exercisesService = exercisesService; this.workoutService = workoutService; this.userManager = userManager; this.equipmentService = equipmentService; }
public ExercisesController(IWorkoutService workoutService, IExerciseService exerciseService, IOwnedAuthService ownedAuthService) { _workoutService = workoutService; _exerciseService = exerciseService; _ownedAuthService = ownedAuthService; }
public WorkoutController(IWorkoutService workoutService, ICommandInvoker commandInvoker, IViewFactory<int, WorkoutSummaryViewModel> viewFactory, IViewFactory<string, IList<Workout>> workoutViewFactory, UserIdProvider idProvider) { _workoutService = workoutService; _commandInvoker = commandInvoker; _viewFactory = viewFactory; _workoutViewFactory = workoutViewFactory; _idProvider = idProvider; }
public WorkoutController(IWorkoutService workoutService, ICommandInvoker commandInvoker, IViewFactory <int, WorkoutSummaryViewModel> viewFactory, IViewFactory <string, IList <Workout> > workoutViewFactory, UserIdProvider idProvider) { _workoutService = workoutService; _commandInvoker = commandInvoker; _viewFactory = viewFactory; _workoutViewFactory = workoutViewFactory; _idProvider = idProvider; }
public WorkoutsController( IWorkoutDataFileRepository workoutDataFileRepository, IWorkoutService workoutService ) { _workoutDataFileRepository = workoutDataFileRepository ?? throw new ArgumentNullException(nameof(workoutDataFileRepository)); _workoutService = workoutService ?? throw new ArgumentNullException(nameof(workoutService)); }
public CaloriesController( IWorkoutService workoutsService, IMealsService mealsService, IMapper mapper) { this.workoutsService = workoutsService; this.mealsService = mealsService; this.mapper = mapper; }
public WorkoutSetViewModel(IWorkoutService workoutService, int userId) { UserId = userId; UserTotalResult = workoutService.GetUserTotalResult(userId); var lastSet = workoutService.GetSets(userId).OrderByDescending(_ => _.Id).FirstOrDefault(); var lastReps = lastSet?.Reps ?? 50; Reps = lastReps; }
public WorkoutsController( IWorkoutService workoutService, IMapper mapper, IOptions <AppSettings> appSettings) { _workoutService = workoutService; _mapper = mapper; _appSettings = appSettings.Value; }
public WorkoutServiceTests() { _mockUserRepo = new Mock <IUserRepo>(); _mockWorkoutRepo = new Mock <IWorkoutRepo>(); _mockLogger = new Mock <ILogger <WorkoutService> >(); _mockUnitOfWork = new Mock <IUnitOfWork>(); _mapper = new Mapper(new MapperConfiguration(cfg => cfg.AddProfile <WorkoutProfiles>())); _workoutService = new WorkoutService(_mockWorkoutRepo.Object, _mapper, _mockUserRepo.Object, _mockUnitOfWork.Object, _mockLogger.Object); }
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 ApiController(DataContext db, IUserService userService, IWorkoutService workoutService, ISessionService sessionService, IRecordService recordService, IExerciseTypeService exerciseTypeService, IRecoveryService recoveryService, IRecoveryDefinitionService recoveryDefinitionService, IOptions <AppSettings> appSettings) { _userService = userService; _workoutService = workoutService; _sessionService = sessionService; _recordService = recordService; _exerciseTypeService = exerciseTypeService; _recoveryService = recoveryService; _recoveryDefinitionService = recoveryDefinitionService; _appSettings = appSettings.Value; }
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 TreniruotesController(UserManager <ApplicationUser> userManager, IWorkoutService treniruotesService, IAdminService adminService, IUserService userService, ApplicationDbContext context) { _userManager = userManager; _workoutService = treniruotesService; _adminService = adminService; _userService = userService; _context = context; }
public WorkoutController(IUserService userService, IRepository repository, IExercisesService exercisesService, IHomeViewService homeViewService, IWorkoutViewService workoutViewService, IWorkoutService workoutService) { _userService = userService; _repository = repository; _exercisesService = exercisesService; _homeViewService = homeViewService; _workoutViewService = workoutViewService; _workoutService = workoutService; }
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 WorkoutController(ILoggerFactory logger, IMapper mapper, IWorkoutService workoutService, IExerciseService exerciseService, UserManager <User> userManager, IWorkoutRepository workoutRepository, IChallengeService challengeService) { _logger = logger.CreateLogger <WorkoutController>(); _mapper = mapper; _workoutService = workoutService; _exerciseService = exerciseService; _userManager = userManager; _workoutRepository = workoutRepository; _challengeService = challengeService; }
public ManageController( UserManager <User> userManager, SignInManager <User> signInManager, IOptions <IdentityCookieOptions> identityCookieOptions, IEmailSender emailSender, ILoggerFactory loggerFactory, IMapper mapper, IUserService userService, IExportService exportService, IWorkoutService workoutService, IChallengeService challengeService) { _userManager = userManager; _signInManager = signInManager; _externalCookieScheme = identityCookieOptions.Value.ExternalCookieAuthenticationScheme; _emailSender = emailSender; _logger = loggerFactory.CreateLogger <ManageController>(); _mapper = mapper; _userService = userService; _exportService = exportService; _workoutService = workoutService; _challengeService = challengeService; }
public WorkoutController(IWorkoutService workoutService) { _workoutService = workoutService; }
public WorkoutsController(IWorkoutService service) { this.service = service; }
public HomeController(IQuestionService questions, IWorkoutService workouts) { this.questions = questions; this.workouts = workouts; }
public WorkoutController(IWorkoutService workoutService, ICommandInvoker commandInvoker, IViewFactory<int, WorkoutSummaryViewModel> viewFactory) { _workoutService = workoutService; _commandInvoker = commandInvoker; _viewFactory = viewFactory; }
public WorkoutsController(IWorkoutService workoutService, IOwnedAuthService ownedAuthService) { _workoutService = workoutService; _ownedAuthService = ownedAuthService; }
public WorkoutAPIController(IWorkoutService treniruotesService, ApplicationDbContext context) { _context = context; _workoutService = treniruotesService; }
public WorkoutController(IWorkoutService workoutService, ICommandInvoker commandInvoker, IViewFactory <int, WorkoutSummaryViewModel> viewFactory) { _workoutService = workoutService; _commandInvoker = commandInvoker; _viewFactory = viewFactory; }
public WorkoutController(IWorkoutService service, ICommandInvoker commandInvoker) { _service = service; _commandInvoker = commandInvoker; }
public WorkoutController(IWorkoutService workoutService, IMapper mapper) { _workoutService = workoutService; _mapper = mapper; }
public SportController(IWorkoutService workoutService) { _WorkoutService = workoutService; }
public EndWorkoutCommandHandler(IWorkoutService workoutService) { _workoutService = workoutService; }
public WorkoutsController(IWorkoutService workoutService) { _workoutService = workoutService ?? throw new ArgumentNullException(nameof(workoutService)); }
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"); }
public AddCardioCommandHandler(IWorkoutService workoutService, IExerciseRepository exerciseRepository) { _workoutService = workoutService; _exerciseRepository = exerciseRepository; }
public WorkoutsController(IWorkoutService workouts) { this.workouts = workouts; }
public WorkoutExerciseController(IUserService userService, IWorkoutService workoutService) { _workoutService = workoutService; _userService = userService; }