Esempio n. 1
0
        //[Authorize(Policy = PolicyNames.ProcessHandicapCalculationsPolicy)]
        public async Task <IActionResult> ProcessHandicapCalculations([FromQuery] Guid tournamentId,
                                                                      CancellationToken cancellationToken)
        {
            StartHandicapCalculationProcessForTournamentCommand command = StartHandicapCalculationProcessForTournamentCommand.Create(tournamentId);

            await this.CommandRouter.Route(command, cancellationToken);

            return(this.NoContent());
        }
Esempio n. 2
0
 public static StartHandicapCalculationProcessForTournamentCommand GetStartHandicapCalculationProcessForTournamentCommand()
 {
     return(StartHandicapCalculationProcessForTournamentCommand.Create(HandicapCalculationProcessTestData.TournamentId));
 }