예제 #1
0
파일: CLI.cs 프로젝트: qarnot/qarnot-cli
        private static IApiDataManager CreateApiDataManager()
        {
            var getEnvPath         = new ConfigurationFileGetter();
            var getFileInformation = new ConfigurationFileReader();

            return(new ApiDataManager(
                       new ApiConnectionConfigurationRetriever(getEnvPath, new EnvironmentVariableReader(), getFileInformation),
                       new ApiConnectionConfigurationWritter(getEnvPath, getFileInformation)));
        }
예제 #2
0
 public bool DoesConfigurationFileExist()
 {
     return(TestConfigurationFileExist(filePath => ConfigurationFileGetter.DoesFileExist(filePath)) != null);
 }
예제 #3
0
 public bool CanConfigurationFileBeCreated()
 {
     return((TestConfigurationFileExist(filePath => ConfigurationFileGetter.DoesFileExist(filePath)) != null) ||
            (TestConfigurationFileExist(filePath => !string.IsNullOrEmpty(filePath)) != null));
 }