public void LoadTest() { //Act _entityStore.Load(); //Assert Assert.AreEqual(2, _entityStore.Count); dynamic resultZero = _entityStore[0]; dynamic resultOne = _entityStore[1]; Assert.AreEqual(3, resultZero.id); Assert.AreEqual(4, resultOne.id); Assert.AreEqual("Employee", resultOne.name); Assert.AreEqual(20, resultOne.x); Assert.AreEqual(400, resultOne.y); }
public MainViewModel(IRepository <ExpandoObject> entityRepository) { EntityStore = new EntityStoreService(entityRepository); EntityStore.Load(); EntitiesBinding = new Binding { Source = EntityStore }; }