public async Task ProperyInfoDeclaredInBaseClassShouldLoadInAnotherDomain() { var item = new InheritedLoadPropertySet(); item = await item.SaveAsync(); Assert.AreEqual(1, item.Id); }
public void ProperyInfoDeclaredInBaseClassShouldLoadInAnotherDomain() { var context = GetContext(); context.Assert.Try(() => { var item = new InheritedLoadPropertySet(); item.Saved += (o, e) => { context.Assert.AreEqual(1, ((InheritedLoadPropertySet)e.NewObject).Id); context.Assert.Success(); }; item.BeginSave(); }); context.Complete(); }