public DomainException(ValidationError error)
 {
     Errors = ErrorsCollection.Create(new List <ValidationError>()
     {
         error
     });
 }
        public override (bool isValid, ErrorsCollection errors) ValidateObject(Money money)
        {
            var result = Validate(money);
            var errors = result.Errors.Select(e => new ValidationError(e.ErrorCode, e.ErrorMessage));

            return(result.IsValid, ErrorsCollection.Create(errors));
        }