public AppSetting Convert(AppSettingModel appSettingModel)
 {
     return(_BuilderFactory
            .AppSettingBuilder()
            .WithKey(appSettingModel.Key)
            .WithValue(appSettingModel.Value)
            .WithTransformType(appSettingModel.TransformType)
            .Build());
 }
        public ProjectEnvironmentConfig Convert(ProjectEnvironmentConfiguration projectConfiguration)
        {
            var project = GetProject(projectConfiguration.ProjectName);

            var environment = GetEnvironment(projectConfiguration.EnvironmentName);

            var appSettingHolder = _BuilderFactory
                                   .ProjectEnvironmentConfigBuilder()
                                   .WithConfigPath(projectConfiguration.ConfigPath)
                                   .WithProject(project)
                                   .WithEnvironment(environment);

            projectConfiguration.AppSettings.ForEach(x =>
            {
                appSettingHolder = appSettingHolder.Add(_BuilderFactory
                                                        .AppSettingBuilder()
                                                        .WithKey(x.Key)
                                                        .WithValue(x.Value)
                                                        .WithTransformType(x.TransformType)
                                                        .Build());
            });

            return(appSettingHolder.Done().Build());
        }