public Bank(Account account1, Account account2)
 {
     Account1 = account1;
     Account2 = account2;
     Account1.PropertyChanged += PropertyChangedPropagator.Create(nameof(Account.Balance), nameof(Total), RaisePropertyChanged);
     Account2.PropertyChanged += PropertyChangedPropagator.Create(nameof(Account.Balance), nameof(Total), RaisePropertyChanged);
 }
Ejemplo n.º 2
0
 public void Setup()
 {
     _source          = new TestPropertyChangedObject();
     _propagator      = new PropertyChangedPropagator <TestPropertyChangedObject>(_source, CallbackHandler);
     _propertyChanged = null;
 }