Ejemplo n.º 1
0
        public void DerivedTest()
        {
            var obj = new AggregateClass(new DerivedModel());
            obj.ClearCount();

            obj.RaisePropertyChanged("BaseProperty1");
            obj.Validate(1, 0, 0, 0);

            obj.ClearCount();
            obj.Model.RaisePropertyChanged("BaseProperty1");
            obj.Validate(1, 1, 1, 1);

            obj.Model.RaisePropertyChanged("BaseProperty2");
            obj.Validate(1, 2, 1, 2);
        }
Ejemplo n.º 2
0
        public void DerivedTest()
        {
            var obj = new AggregateClass(new DerivedModel());

            obj.ClearCount();

            obj.RaisePropertyChanged("BaseProperty1");
            obj.Validate(1, 0, 0, 0);

            obj.ClearCount();
            obj.Model.RaisePropertyChanged("BaseProperty1");
            obj.Validate(1, 1, 1, 1);

            obj.Model.RaisePropertyChanged("BaseProperty2");
            obj.Validate(1, 2, 1, 2);
        }