Esempio n. 1
0
 /// <summary>
 /// Create a policy builder for a policy that applies to type
 /// </summary>
 /// <param name="type">type for which policy is being asserted</param>
 /// <param name="initialAsserts">parent policy from which to inherit behavior</param>
 public PolicyBuilder(Type type, IPolicyAsserter initialAsserts)
 {
     _policyData = new PolicyData(type, initialAsserts.Copy());
 }
Esempio n. 2
0
 public PolicyData(Type type, IPolicyAsserter asserter)
 {
     Type     = type ?? throw new ArgumentNullException(nameof(type));
     Asserter = asserter ?? throw new ArgumentNullException(nameof(asserter));
 }