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