Exemplo n.º 1
0
        public INotification Validate <T>(T objectToValidate)
        {
            var businessRuleObject = objectToValidate as IValidatable;

            if (businessRuleObject == null)
            {
                return(_factory.NoNotification());
            }
            return(_factory.CreateNotificationFrom(businessRuleObject.Validate()));
        }