Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance
        /// of the <see cref="DataErrorNotifier"/> class.
        /// </summary>
        /// <param name="owner">The instance for which validation
        /// is being provided.</param>
        /// <param name="validator">The validator.</param>
        public DataErrorNotifier(
            INotifyPropertyChanged owner, IValidateData validator)
        {
            this.validator = AssertArg.IsNotNull(validator, nameof(validator));
            this.owner     = AssertArg.IsNotNull(owner, nameof(owner));

            owner.PropertyChanged += HandleOwnerPropertyChanged;

            ReadValidationAttributes();
        }
Esempio n. 2
0
 public FileUploadController(IGetData data, IValidateData invalidator)
 {
     this.data = data;
     this.invalidator = invalidator;
 }