public LocalisationCommand(ISolutionDirectoryProvider solutionProvider) : base(solutionProvider) { RegisterQuery(SpinSportConstants.QUERY_LIST, (Func <CommandContext, ICommandResult>) this.List); RegisterQuery(SpinSportConstants.QUERY_GET, (Func <CommandContext, ICommandResult>) this.Get); RegisterQuery(SpinSportConstants.QUERY_SET, (Func <CommandContext, ICommandResult>) this.Set); }
public SpinSportCommand(ISolutionDirectoryProvider solutionProvider) { this.solutionProvider = solutionProvider ?? throw new ArgumentNullException(nameof(solutionProvider)); RegisterQuery(SpinSportConstants.QUERY_CONFIG_LOCALISATION, new LocalisationCommand(solutionProvider)); RegisterQuery(SpinSportConstants.QUERY_CONFIG_COLOUR, new ColourCommand(solutionProvider)); RegisterQuery(SpinSportConstants.QUERY_CONFIG_COLOUR_USAGE, new ColourUsageCommand(solutionProvider)); RegisterQuery(SpinSportConstants.QUERY_CODE, new CodeCommand()); }
protected BaseSolutionCommand(ISolutionDirectoryProvider solutionProvider) { this.solutionProvider = solutionProvider ?? throw new ArgumentNullException(nameof(solutionProvider)); }