public static bool IsDefective(LotAttributeValues attributeValue, ProductAttributeSpec productSpec) { if (attributeValue == null || productSpec == null || attributeValue.HasResolvedDefects) { return(false); } return(attributeValue.LabTestValue < productSpec.MinValue || attributeValue.LabTestValue > productSpec.MaxValue); }
public static bool IsResolved(LotAttributeValues attributeValue) { return(attributeValue != null && attributeValue.HasResolvedDefects); }