12using System.Diagnostics;
13using Microsoft.VisualStudio.TestTools.UnitTesting;
14using System.Windows.Data;
17using TestClass = NUnit.Framework.TestFixtureAttribute;
18using TestInitialize = NUnit.Framework.SetUpAttribute;
19using TestCleanup = NUnit.Framework.TearDownAttribute;
20using TestMethod = NUnit.Framework.TestAttribute;
35 var binding =
new System.Windows.Data.Binding(
"Name");
37 binding.Mode = System.Windows.Data.BindingMode.OneWay;
40 Assert.IsTrue(obj.IsValid,
"object valid");
41 Assert.IsTrue(pi.IsValid,
"pi valid");
44 Assert.IsFalse(obj.IsValid,
"object invalid");
45 Assert.IsFalse(pi.IsValid,
"pi invalid");
48 Assert.IsTrue(obj.IsValid,
"object valid after set");
49 Assert.IsTrue(pi.IsValid,
"pi valid after set");
65 base.AddBusinessRules();
71 BusinessRules.CheckRules();
72 OnUnknownPropertyChanged();
This is the base class from which most business objects will be derived.
Maintains metadata about a property.
Business rule for a required string.
override void AddBusinessRules()
static PropertyInfo< string > NameProperty
Expose metastate information about a property.
object Source
Gets or sets the Source.
static readonly DependencyProperty PropertyProperty
Gets or sets the source business property to which this control is bound.
@ Serializable
Prevents updating or inserting until the transaction is complete.