Ejemplo n.º 1
0
        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)));
        }
Ejemplo n.º 2
0
 public bool DoesConfigurationFileExist()
 {
     return(TestConfigurationFileExist(filePath => ConfigurationFileGetter.DoesFileExist(filePath)) != null);
 }
Ejemplo n.º 3
0
 public bool CanConfigurationFileBeCreated()
 {
     return((TestConfigurationFileExist(filePath => ConfigurationFileGetter.DoesFileExist(filePath)) != null) ||
            (TestConfigurationFileExist(filePath => !string.IsNullOrEmpty(filePath)) != null));
 }