Example #1
0
 public VenuesController(
     MotorsportsContext context,
     IVenueService venueService,
     IModelStatePopulator <Venue, string> venueModelStatePopulator)
 {
     _venueService             = venueService ?? throw new ArgumentNullException(nameof(venueService));
     _venueModelStatePopulator = venueModelStatePopulator ?? throw new ArgumentNullException(nameof(venueModelStatePopulator));
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Example #2
0
 public RoundsController(
     IRoundService roundService,
     ISeasonService seasonService,
     IModelStatePopulator <Round, int> roundModelStatePopulator)
 {
     _roundService             = roundService ?? throw new ArgumentNullException(nameof(roundService));
     _seasonService            = seasonService ?? throw new ArgumentNullException(nameof(seasonService));
     _roundModelStatePopulator = roundModelStatePopulator ?? throw new ArgumentNullException(nameof(roundModelStatePopulator));
 }
 public SeasonEntriesController(
     ISeasonService seasonService,
     ISeasonEntryService seasonEntryService,
     IModelStatePopulator <SeasonEntry, SeasonEntry.SeasonEntryKey> seasonEntryModelStatePopulator)
 {
     _seasonService                  = seasonService ?? throw new ArgumentNullException(nameof(seasonService));
     _seasonEntryService             = seasonEntryService ?? throw new ArgumentNullException(nameof(seasonEntryService));
     _seasonEntryModelStatePopulator = seasonEntryModelStatePopulator ?? throw new ArgumentNullException(nameof(seasonEntryModelStatePopulator));
 }
Example #4
0
 public SportsController(
     MotorsportsContext context,
     ISportService sportService,
     IModelStatePopulator <Sport, string> sportModelStatePopulator)
 {
     _context                  = context ?? throw new ArgumentNullException(nameof(context));
     _sportService             = sportService ?? throw new ArgumentNullException(nameof(sportService));
     _sportModelStatePopulator = sportModelStatePopulator ?? throw new ArgumentNullException(nameof(sportModelStatePopulator));
 }
Example #5
0
 public SeasonsController(ISeasonService seasonService, IModelStatePopulator <Season, int> seasonModelStatePopulator)
 {
     _seasonService             = seasonService ?? throw new ArgumentNullException(nameof(seasonService));
     _seasonModelStatePopulator = seasonModelStatePopulator ?? throw new ArgumentNullException(nameof(seasonModelStatePopulator));
 }
Example #6
0
 public TeamsController(MotorsportsContext context, IModelStatePopulator <Team, int> teamModelStatePopulator)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _teamModelStatePopulator = teamModelStatePopulator ?? throw new ArgumentNullException(nameof(teamModelStatePopulator));
 }
 public ParticipantsController(MotorsportsContext context, IModelStatePopulator <Participant, int> participantModelStatePopulator)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _participantModelStatePopulator = participantModelStatePopulator ?? throw new ArgumentNullException(nameof(participantModelStatePopulator));
 }