public SportTableService(ISportRepository sportsRepo, ITeamRepository teamsRepo, IInnerEncounterService service)
 {
     sportsStorage  = sportsRepo;
     teamsStorage   = teamsRepo;
     matchesService = service;
     mapper         = new TeamDtoMapper();
 }
 public TeamService(ISportRepository sportsRepo, ITeamRepository teamsRepo, IAuthenticationService authService)
 {
     sports        = sportsRepo;
     teams         = teamsRepo;
     authenticator = authService;
     mapper        = new TeamDtoMapper();
 }
Esempio n. 3
0
 public UserService(IUserRepository usersRepository, ITeamRepository teamRepository, IAuthenticationService authService)
 {
     usersStorage  = usersRepository;
     teamsStorage  = teamRepository;
     authenticator = authService;
     factory       = new UserFactory();
     userMapper    = new UserDtoMapper();
     teamMapper    = new TeamDtoMapper();
 }