9using System.Collections.Generic;
32 BusinessRules.CheckRules();
37 protected override void Execute(Rules.IRuleContext context)
39 context.AddInformationResult(
"Always info");
45 protected override void Execute(Rules.IRuleContext context)
47 context.AddWarningResult(
"Always warns");
53 protected override void Execute(Rules.IRuleContext context)
55 context.AddErrorResult(
"Always error");
62 BusinessRules.CheckRules();
77 BusinessRules.CheckRules();
88 protected override void Execute(Rules.IRuleContext context)
90 context.AddInformationResult(
"Always info");
96 protected override void Execute(Rules.IRuleContext context)
98 context.AddWarningResult(
"Always warns");
103 private void Create()
105 BusinessRules.CheckRules();
This is the base class from which most business objects will be derived.
Maintains metadata about a property.
override void Execute(Rules.IRuleContext context)
override void Execute(Rules.IRuleContext context)
static PropertyInfo< string > TestProperty
override void AddBusinessRules()
override void Execute(Rules.IRuleContext context)
override void Execute(Rules.IRuleContext context)
override void Execute(Rules.IRuleContext context)
override void AddBusinessRules()
static PropertyInfo< string > TestProperty