protected override void Store() { Customer customer = new Customer(); customer._name = "db4objects"; Address address = new Address(); customer._addresses = new Address[] { address }; Country country = new Country(); address._country = country; address._firstLine = "Suite 350"; State state = new State(); country._states = new State[] { state }; state._name = "California"; City city = new City(); state._cities = new City[] { city }; Store(customer); }
/// <exception cref="System.Exception"></exception> private void CheckGraphActivation(Country country) { AssertIsDeactivated(country); AssertIsNull(country, "_states"); State state = country.GetState("94403"); AssertIsActivated(state); AssertIsNotNull(country, "_states"); AssertIsNotNull(state, "_name"); AssertIsNotNull(state, "_cities"); City city = state._cities[0]; Assert.IsNotNull(city); AssertIsDeactivated(city); AssertIsNull(city, "_name"); }
private IEnumerator IterateGraph(Country country) { return new ArrayIterator4(new object[] { country._states[0]._cities[0], country._states [0], country }); }