public TournamentService(IYoyoTournamentsDbContext dbContext, IDivisionTypeService divisionTypeService) { Guard.WhenArgument(dbContext, nameof(dbContext)).IsNull().Throw(); Guard.WhenArgument(divisionTypeService, nameof(divisionTypeService)).IsNull().Throw(); this.dbContext = dbContext; this.divisionTypeService = divisionTypeService; }
public DivisionTypeController(IDivisionTypeService service) { Guard.WhenArgument(service, nameof(service)).IsNull().Throw(); this.service = service; }