/// <exception cref="System.Exception"></exception> protected override void Store() { QueryByInterface.Ferrari f430 = new QueryByInterface.Ferrari("F430"); QueryByInterface.Ferrari f450 = new QueryByInterface.Ferrari("F450"); Store(f430); Store(f450); QueryByInterface.Bmw serie5 = new QueryByInterface.Bmw("Serie 5"); QueryByInterface.Bmw serie7 = new QueryByInterface.Bmw("Serie 7"); Store(serie5); Store(serie7); }
public virtual void Test() { IQuery q = NewQuery(); q.Constrain(typeof(QueryByInterface.ICar)); q.Descend("name").Constrain("F450"); IObjectSet result = q.Execute(); Assert.AreEqual(1, result.Count); QueryByInterface.Ferrari car = (QueryByInterface.Ferrari)result.Next(); Assert.AreEqual("F450", car.name); }