Пример #1
0
 public void ExtractCaptureFromRisk(InputPolDataElement risk, Action <string, Guid, Guid, string> onValueExtraction)
 {
     GreenLogger.Log("Extracting capture from risk for {0}", State.ProductLine);
     foreach (XElement riskSectionElement in risk.InnerXElement.Elements())
     {
         State.Sections[riskSectionElement.Name.LocalName].ExtractCaptureFromRiskSection(riskSectionElement, onValueExtraction);
     }
 }
Пример #2
0
        public void ExtractMapFromRisk(InputPolDataElement risk)
        {
            GreenLogger.Log("Extracting map from risk for {0}", State.ProductLine);
            foreach (XElement riskSectionElement in risk.InnerXElement.Elements())
            {
                if (!State.Sections.ContainsKey(riskSectionElement.Name.LocalName))
                {
                    GreenLogger.Log("new risk section mapped for {0}", riskSectionElement.Name.LocalName);

                    Then(new NewRiskSectionMapped(State.ProductLine, Guid.NewGuid(), riskSectionElement.Name.LocalName));
                }

                State.Sections[riskSectionElement.Name.LocalName].ExtractMapFromRiskSection(riskSectionElement);
            }
        }