Esempio n. 1
0
 private bool ValidateOptionalInfo(HardwareBindingReport hardwareBindingReport)
 {
     bool result = true;
     XDocument param = ParseAndValidateXML(hardwareBindingReport.OEMOptionalInfo, parameterSchema);
     if (param == null)
         result = true;
     else
         result = ValidateOptionalInfoName(param);
     return result;
 }
Esempio n. 2
0
 private string Validate(List<ProductKeyInfo> context, HardwareBindingReport hardwareBindingReport)
 {
     string reasonCode;
     var productKeyInfo = context.SingleOrDefault(k => k.ProductKeyID == hardwareBindingReport.ProductKeyID);
     if (!ValidateDuplicateProductKey(context, hardwareBindingReport.ProductKeyID))
         reasonCode = "01";
     else
         reasonCode = GetRandomCbrReasonCode();
     return reasonCode;
 }