public string GenerateXMLFromScript(string scriptToBeExecuted,SunFixAttributes sunFixAttributes)
 {
     SunFixContext sunFixContext = new SunFixContext(SunFixType.Sun, container);
     return sunFixContext.ProcessGeneratedScript(scriptToBeExecuted, sunFixAttributes);
 }
 public string GetFix(SunFixAttributes sunFixAttributes)
 {
     try
     {
         SunFixContext sunFix = new SunFixContext(sunFixAttributes.SunFixType,container);
         return sunFix.GenerateFix(sunFixAttributes);
     }
     catch (Exception ex)
     {
         return new StringBuilder("XML/Script Cannot be formed. Please Investigate.\n\nException:\n").Append(ex.Message).ToString();
     }
 }
        public string ProcessXMLFromStream(Stream fileContentStream, Model.SunFixAttributes sunFixAttributes)
        {
            try {
                    SunFixContext fixContext = new SunFixContext(sunFixAttributes.SunFixType, container);

                    return fixContext.ConvertTestXMLToLive(fileContentStream, sunFixAttributes);
                }
            catch (Exception ex)
            {
                return new StringBuilder("An Error Occured.\n\nException:\n").Append(ex.Message).ToString();
            }
        }