public WorkoutOfTheDayController( IAthleteService athleteService, IStatisticsService statisticsService) { _athleteService = athleteService; _statisticsService = statisticsService; }
public override void Setup() { base.Setup(); #if UNIT AthleteService = new AthleteService(WebClient); #elif INT AthleteService = ServiceLocator.Get <IAthleteService>(); #endif }
public override void Setup() { base.Setup(); #if UNIT AthleteService = new AthleteService(WebClient); #elif INT AthleteService = ServiceLocator.Get<IAthleteService>(); #endif }
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; }
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); }
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; }
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); }
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; }
public GuidController(ApplicationDbContext context) { athleteService = new AthleteService(context); _context = context; }
public GetAthleteHandler(IAthleteService athleteService) { _athleteService = athleteService; }
public AthleteController(IAthleteService _repo) { _context = _repo; }
public GetAthleteExercisesHandler(IAthleteService athleteService) { _athleteService = athleteService; }
public AthletesController(IAthleteService athleteService) { this.athleteService = athleteService; }
public CheckInController() { _athleteService = new AthleteService(new UnitOfWork(), new StatisticsService(new UnitOfWork())); }
public TestController(ITestService testService, IAthleteService athleteService) { _testService = testService; _athleteService = athleteService; }
public GetAthleteProductHandler(IAthleteService athleteService) { _athleteService = athleteService; }
public AthleteController(IAthleteService athleteService) { _athleteService = athleteService; }