示例#1
0
 public ChampionshipsController(FormulaContext context,
                                UserManager <SimUser> userManager,
                                IChampionshipService service)
     : base(context, userManager)
 {
     _champService = service;
 }
 public ArticleController(IArticleService ArticleService, ICommentService commentService,
                          IChampionshipService championshipService, ITeamService teamService)
 {
     this.articleService      = ArticleService;
     this.commentService      = commentService;
     this.championshipService = championshipService;
     this.teamService         = teamService;
 }
 public MatchController(IMatchService matchService, ITeamService teamService,
                        IUserForecastService userForecastService, IChampionshipService championshipService)
 {
     this.matchService        = matchService;
     this.teamService         = teamService;
     this.userForecastService = userForecastService;
     this.championshipService = championshipService;
 }
示例#4
0
 public AdminController(IChampionshipService championshipService, ITeamService teamService,
                        IMatchService matchService, IArticleService articleService, ITagService tagService,
                        IInQuestionService inQuestionService, IUserForecastService userForecast)
 {
     this.championshipService = championshipService;
     this.teamService         = teamService;
     this.matchService        = matchService;
     this.articleService      = articleService;
     this.tagService          = tagService;
     this.inQuestionService   = inQuestionService;
     this.userForecast        = userForecast;
 }
示例#5
0
 public SeasonController(FormulaContext context,
                         UserManager <SimUser> userManager,
                         ISeasonService seasons,
                         IChampionshipService championships,
                         ITrackService tracks,
                         RaceBuilder raceBuilder)
     : base(context, userManager)
 {
     _seasons       = seasons;
     _championships = championships;
     _tracks        = tracks;
     _raceBuilder   = raceBuilder;
 }
示例#6
0
 public HomeController(FormulaContext context,
                       UserManager <SimUser> userManager,
                       IChampionshipService championshipService,
                       ISeasonService seasonService,
                       IRaceService raceService,
                       ISeasonDriverService seasonDriverService,
                       ISeasonTeamService seasonTeamService)
     : base(context, userManager)
 {
     _championships = championshipService;
     _seasons       = seasonService;
     _races         = raceService;
     _seasonDrivers = seasonDriverService;
     _seasonTeams   = seasonTeamService;
 }
 public ChampionshipsV1And2Controller(IChampionshipService championshipService, IMapper mapper)
 {
     _championatService = championshipService ?? throw new ArgumentNullException(nameof(championshipService));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(championshipService));
 }
示例#8
0
 public void Before()
 {
     _movieApiClient      = new Mock <IMovieApiClient>();
     _championshipService = new ChampionshipService(_movieApiClient.Object);
 }
示例#9
0
 public ChampionshipController(IChampionshipService championshipService)
 {
     _championshipService = championshipService;
 }
示例#10
0
 public TeamsController(IChampionshipService championshipService)
 {
     this.championshipService = championshipService;
 }
示例#11
0
 public ChampionshipsController(IChampionshipService ChampionshipService, IFMService FMService)
 {
     _ChampionshipService = ChampionshipService;
     _FMService           = FMService;
 }
示例#12
0
 public ChampionshipServiceTests()
 {
     championshipService = CreateNewInstanceChampionshipService();
 }
 public ChampionshipController(IChampionshipService championshipService, ITeamService teamService)
 {
     this.championshipService = championshipService;
     this.teamService         = teamService;
 }
示例#14
0
 public ChampionshipController(IChampionshipService championshipSerivice, IMapper mapper)
 {
     _championshipService = championshipSerivice;
     _mapper = mapper;
 }
示例#15
0
 public SeasonController(ISeasonService seasonService, IChampionshipService championshipService)
 {
     this.seasonService       = seasonService;
     this.championshipService = championshipService;
 }
示例#16
0
 public ChampionshipController(IChampionshipService championshipService, ICountryService countryService)
 {
     this.championshipService = championshipService;
     this.countryService      = countryService;
 }