Ejemplo n.º 1
0
 /// <summary>
 /// Called by <see cref="ValidationShouldReturn{TModel}.NoErrors"/>
 /// </summary>
 /// <param name="validationForModel"></param>
 /// <param name="memberName"></param>
 internal ValidationResultTester(ValidationForModel <TModel> validationForModel, MemberInfo memberInfo)
 {
     _validationForModel = validationForModel;
     _memberInfo         = memberInfo;
     _memberNames        = new List <string> {
         memberInfo.Name
     };
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Called by <see cref="ValidationForModel{TModel}.ShouldReturn" />
 /// </summary>
 /// <param name="validationForModel"></param>
 internal ValidationShouldReturn(ValidationForModel <TModel> validationForModel)
 {
     _validationForModel = validationForModel;
 }
 /// <summary>
 /// Called by <see cref="ValidationForModel{TModel}.ShouldReturn" />
 /// </summary>
 /// <param name="validationForModel"></param>
 internal ValidationShouldReturn(ValidationForModel <TModel> validationForModel)
 {
     _validationForModel = validationForModel;
     _typeName           = typeof(TModel).Name;
 }