private static void AssertItemRemoved(AggregateChangedEventArgs args, CollectionItem item) { Assert.IsNotNull(args); Assert.AreEqual(args.AggregateChangedType, AggregateChangedType.CollectionItemRemoved); Assert.AreEqual(args.PropertyName, "CollectionItems"); Assert.AreSame(args.OldValue, item); Assert.IsNull(args.NewValue); }
public CollectionItemItem( CollectionItem collectionItem ) { CollectionItem = collectionItem; }
public void RemoveCollectionItem( CollectionItem item ) { _collectionItems.Remove ( item ); NotifyItemRemoved ( () => CollectionItems, item ); }
public CollectionItem CreateCollectionItem( bool propertyValue ) { var item = new CollectionItem ( this, propertyValue ); _collectionItems.Add ( item ); NotifyItemAdded ( () => CollectionItems, item ); return item; }
public CollectionItemItem(CollectionItem collectionItem) { CollectionItem = collectionItem; }
public void RemoveCollectionItem(CollectionItem item) { _collectionItems.Remove(item); NotifyItemRemoved(() => CollectionItems, item); }