Beispiel #1
0
 public void Setup()
 {
     _items = new ObservableList <TestObject>(new []
     {
         new TestObject(1, "one"),
         new TestObject(2, "two")
     });
     _itemsByName = _items.BuildUniqueIndex(v => v.Name);
     _itemsById   = _items.BuildUniqueIndex(v => v.Id);
 }