public void CreateEntity_WithMultiplicityConstraints() { IServiceProvider provider = new TweakTestDataServiceProvider(); var collection = new CycleModelCollection(provider); var cycleModel = new CycleModel { Gears = 30 }; collection.Add(cycleModel); }
public void CreateEntity_WithoutMultiplicityConstraints() { IServiceProvider provider = new TweakTestDataServiceProvider(); var collection = new CycleModelCollection(provider); while (collection.Reading) { Thread.Sleep(200); } var cycleModel = new CycleModel(); collection.Add(cycleModel); cycleModel.Gears = 21; collection.Save(); }