public static Result <string> ReturnErrorWithString(string errorMessage) => ResultFactory.CreateError <string>(errorMessage);
public static Result <Nothing> ReturnErrorWithNothing(string errorMessage) => ResultFactory.CreateError(errorMessage);
public IResult <Nothing> Evaluate() { return(_predicate() ? ResultFactory.CreateSuccess() : ResultFactory.CreateError(_errorMessage)); }