public override bool CheckParameters(IParameterChecker _) { return(_.Check(!string.IsNullOrWhiteSpace(this.NewValue), "The new value cannot be empty.")); }
public bool CheckParameters(IParameterChecker _) { return(_.Check(nameof(this.Name), !string.IsNullOrWhiteSpace(this.Name), "Please provide a name for your new Todo List.")); }
public bool CheckParameters(IParameterChecker _) { return _.Check(() => this.FirstParameter, p => !string.IsNullOrWhiteSpace(p), FirstErrorMessage) && _.Check(() => this.SecondParameter, p => p >= 0, FirstErrorMessage); }