コード例 #1
0
ファイル: PropertGetSetTests.cs プロジェクト: mlivensp/csla
        public async Task ProperyInfoDeclaredInBaseClassShouldLoadInAnotherDomain()
        {
            var item = new InheritedLoadPropertySet();

            item = await item.SaveAsync();

            Assert.AreEqual(1, item.Id);
        }
コード例 #2
0
ファイル: PropertGetSetTests.cs プロジェクト: mtemel123/csla
        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();
        }