Beispiel #1
0
        public override bool Validate()
        {
            if (ServiceValidator.isNotNull())
            {
                var result = ServiceValidator.Validate(Owner);
                if (result.IsValid.isFalse())
                {
                    Debug.WriteLine($"service : {Owner.GetType().Name}");
                    Debug.WriteLine($"error : {result.Errors.First().ErrorMessage}");
                    return(false);
                }
            }

            return(true);
        }