public void Provision(ImportBaseElement x, string templateRootFolder, string sharePointSiteUrl, string sharePointUserName, string sharePointPassword) { if (x.Enabled) { var fullPath = Path.Combine(templateRootFolder, x.SourceFolder); if (!templateManger.DirectoryExists(fullPath)) { return; } var templates = templateManger.GetTemplates(fullPath); Console.WriteLine($"Deploying from folder : {x.SourceFolder} - Templates found : {templates.Count}"); templates.ForEach(template => { provisioningManager.Provision(sharePointSiteUrl, sharePointUserName, sharePointPassword, template); }); } }