public List <CarfupStep> GetSteps(IOrganizationService service, PluginSettings settings, string filterName)
        {
            var org   = _org;
            var steps = new List <CarfupStep>();

            _org = _org == "Source" ? "Target" : "Source";
            if (service == null)
            {
                foreach (var file in Directory.GetFiles(@"C:\Temp\XML\" + org + @"\"))
                {
                    steps.Add(new CarfupStep(File.ReadAllText(file).DeserializeEntity().ToEntity <PluginType>(), org));
                }

                return(steps);
            }
            steps = CarfupStep.GetSteps(service, settings, null, null);
            if (Config.GetAppSettingOrDefault("SavePluginStepsForUnitTesting", false))
            {
                foreach (var step in steps)
                {
                    var id = step.StepId.ToString();
                    if (step.ImageId != Guid.Empty)
                    {
                        id += "." + step.ImageId;
                    }
                    File.WriteAllText(@"C:\Temp\XML\" + org + @"\" + id + @".xml", step.Plugin.Serialize());
                }
            }

            return(steps);
        }
 public List <CarfupStep> GetSteps(IOrganizationService service, PluginSettings settings, string filterName)
 {
     return(CarfupStep.GetSteps(service, settings, null, filterName));
 }