Exemplo n.º 1
0
 /// <summary>
 /// Check if the result object contains a success with a specific condition
 /// </summary>
 public bool HasSuccess(Func <Success, bool> predicate)
 {
     return(ResultHelper.HasSuccess(Successes, predicate));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Check if the result object contains a success from a specific type and with a specific condition
 /// </summary>
 public bool HasSuccess <TSuccess>(Func <TSuccess, bool> predicate) where TSuccess : Success
 {
     return(ResultHelper.HasSuccess(Successes, predicate));
 }