public Config(IFileSystem fs) { var section = (AppConfigurationSection) ConfigurationManager.GetSection("easyConfig"); var baseDirectory = string.IsNullOrEmpty(section.BaseDirectory) ? fs.CombinePaths(fs.GetTempDirectory(), "EasyConfig") : section.BaseDirectory; interval = section.Interval ?? TimeSpan.FromSeconds(30); repoConfigs = section.RepoItems.OfType<RepoElement>().Select(x => new RepoConfig { Url = x.Url, BaseDirectory = baseDirectory, Branch = x.Branch, MountPoint = x.MountPoint, Name = x.Name }).ToArray(); }