public WorkoutOfTheDayController(
     IAthleteService athleteService,
     IStatisticsService statisticsService)
 {
     _athleteService = athleteService;
     _statisticsService = statisticsService;
 }
Esempio n. 2
0
        public override void Setup()
        {
            base.Setup();
#if UNIT
            AthleteService = new AthleteService(WebClient);
#elif INT
            AthleteService = ServiceLocator.Get <IAthleteService>();
#endif
        }
Esempio n. 3
0
 public override void Setup()
 {
     base.Setup();
     #if UNIT
     AthleteService = new AthleteService(WebClient);
     #elif INT
     AthleteService = ServiceLocator.Get<IAthleteService>();
     #endif
 }
Esempio n. 4
0
 public AthleteController(
     IAthleteRepository subNineRepository,
     IAthleteService athleteService,
     IMapper mapper
     )
 {
     this.subNineRepository = subNineRepository;
     this.athleteService    = athleteService;
     this.mapper            = mapper;
 }
 public ExternaLoginService(IFacebookAuthService facebookAuthService, IUserRepository userRepository,
                            IJwtHandler jwtHandler, IRefreshTokenFactory refreshTokenFactory, IRefreshTokenRepository refreshTokenRepository,
                            UserManager <User> userManager, IAthleteService athleteService)
 {
     _facebookAuthService    = facebookAuthService;
     _userRepository         = userRepository;
     _jwtHandler             = jwtHandler;
     _refreshTokenFactory    = refreshTokenFactory;
     _refreshTokenRepository = refreshTokenRepository;
     _userManager            = userManager;
     _athleteService         = athleteService;
 }
Esempio n. 6
0
 public ExternalLoginServiceTests()
 {
     _fixture                = new Fixture();
     _facebookAuthService    = Substitute.For <IFacebookAuthService>();
     _userRepository         = Substitute.For <IUserRepository>();
     _jwtHandler             = Substitute.For <IJwtHandler>();
     _refreshTokenFactory    = new RefreshTokenFactory(new Rng(), new DateTimeProvider());
     _refreshTokenRepository = Substitute.For <IRefreshTokenRepository>();
     _fakeUserManager        = Substitute.For <FakeUserManager>();
     _athleteService         = Substitute.For <IAthleteService>();
     _sut = new ExternaLoginService(_facebookAuthService, _userRepository, _jwtHandler,
                                    _refreshTokenFactory, _refreshTokenRepository, _fakeUserManager, _athleteService);
 }
Esempio n. 7
0
 public AthleteModule(ILogger <AthleteModule> logger,
                      ILeaderboardParticipantService participantService,
                      IStravaAuthenticationService stravaAuthenticationService,
                      IEmbedBuilderService embedBuilderService,
                      IAthleteService athleteService,
                      IStravaCredentialService stravaCredentialService)
 {
     _logger                      = logger;
     _participantService          = participantService;
     _stravaAuthenticationService = stravaAuthenticationService;
     _embedBuilderService         = embedBuilderService;
     _athleteService              = athleteService;
     _stravaCredentialService     = stravaCredentialService;
 }
Esempio n. 8
0
 public AccountService(IUserRepository userRepository, IPasswordHandler passwordHandler,
                       IJwtHandler jwtHandler, IRefreshTokenFactory refreshTokenFactory, IRefreshTokenRepository refreshTokenRepository,
                       UserManager <User> userManager, GeneralSettings generalSettings, IEmailService emailSender,
                       IAthleteService athleteService)
 {
     _userRepository         = userRepository;
     _passwordHandler        = passwordHandler;
     _jwtHandler             = jwtHandler;
     _refreshTokenFactory    = refreshTokenFactory;
     _refreshTokenRepository = refreshTokenRepository;
     _generalSettings        = generalSettings;
     _userManager            = userManager;
     _emailSender            = emailSender;
     _athleteService         = athleteService;
 }
        public AccountServiceTests()
        {
            _fixture = new Fixture();
            _fixture.Behaviors.OfType <ThrowingRecursionBehavior>().ToList()
            .ForEach(b => _fixture.Behaviors.Remove(b));
            _fixture.Behaviors.Add(new OmitOnRecursionBehavior());
            _passwordHandler        = Substitute.For <IPasswordHandler>();
            _refreshTokenFactory    = Substitute.For <IRefreshTokenFactory>();
            _refreshTokenRepository = Substitute.For <IRefreshTokenRepository>();
            _userRepository         = Substitute.For <IUserRepository>();
            _jwtHandler             = Substitute.For <IJwtHandler>();

            _fakeUserManager = Substitute.For <FakeUserManager>();
            _emailService    = Substitute.For <IEmailService>();
            _generalSettings = Substitute.For <GeneralSettings>();
            _athleteService  = Substitute.For <IAthleteService>();

            _sut = new AccountService(_userRepository, _passwordHandler, _jwtHandler, _refreshTokenFactory,
                                      _refreshTokenRepository, _fakeUserManager, _generalSettings, _emailService, _athleteService);
        }
Esempio n. 10
0
 public static void Athletes(IAthleteService svc)
 {
     svc.Initialise();
 }
 public DeleteAthleteHandler(IAthleteService athleteService)
 {
     _athleteService = athleteService;
 }
 public AthletesController(IAthleteService athleteService, IOptions <PagingOptions> defaultPagingOptions)
 {
     _athleteService       = athleteService;
     _defaultPagingOptions = defaultPagingOptions.Value;
 }
Esempio n. 13
0
 public GuidController(ApplicationDbContext context)
 {
     athleteService = new AthleteService(context);
     _context       = context;
 }
Esempio n. 14
0
 public GetAthleteHandler(IAthleteService athleteService)
 {
     _athleteService = athleteService;
 }
Esempio n. 15
0
 public AthleteController(IAthleteService _repo)
 {
     _context = _repo;
 }
Esempio n. 16
0
 public GetAthleteExercisesHandler(IAthleteService athleteService)
 {
     _athleteService = athleteService;
 }
 public AthletesController(IAthleteService athleteService)
 {
     this.athleteService = athleteService;
 }
Esempio n. 18
0
 public CheckInController()
 {
     _athleteService = new AthleteService(new UnitOfWork(), new StatisticsService(new UnitOfWork()));
 }
Esempio n. 19
0
 public TestController(ITestService testService, IAthleteService athleteService)
 {
     _testService    = testService;
     _athleteService = athleteService;
 }
 public GetAthleteProductHandler(IAthleteService athleteService)
 {
     _athleteService = athleteService;
 }
Esempio n. 21
0
 public AthleteController(IAthleteService athleteService)
 {
     _athleteService = athleteService;
 }