Пример #1
0
 public EncounterQueryServices(ILoginServices loginServices, IExtendedEncounterRepository encounterRepository, IRepository <Sport> sportRepo, IRepository <Team> teamRepo, IRepository <User> userRepo, IRepository <Comment> commentRepo)
 {
     this.loginServices       = loginServices;
     this.encounterRepository = encounterRepository;
     this.sportRepo           = sportRepo;
     this.teamRepo            = teamRepo;
     this.userRepo            = userRepo;
     this.commentRepo         = commentRepo;
     encounterMapper          = new EncounterMapper(sportRepo, teamRepo, commentRepo);
     commentMapper            = new CommentMapper(userRepo);
 }
Пример #2
0
 public PositionServices(IExtendedEncounterRepository encounterRepo, IAssemblyLoader assemblyLoader)
 {
     this.encounterRepo  = encounterRepo;
     this.assemblyLoader = assemblyLoader;
     SetupAssemblyLoader();
 }