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