public void FetchValidationRules() { XmlSerializer reader = new XmlSerializer(typeof(BusinessValidations)); string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"BusinessRules\ValidationList.xml"); System.IO.StreamReader file = new System.IO.StreamReader(path); ValidationRules = (BusinessValidations)reader.Deserialize(file); file.Close(); }
public ValidationHelper() { ValidationRules = new BusinessValidations(); }
public ExcelValidationHelper() { ValidationRules = new BusinessValidations(); tableCollection = new List<DataTable>(); }