Beispiel #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)));
        }
 public bool DoesConfigurationFileExist()
 {
     return(TestConfigurationFileExist(filePath => ConfigurationFileGetter.DoesFileExist(filePath)) != null);
 }
 public bool CanConfigurationFileBeCreated()
 {
     return((TestConfigurationFileExist(filePath => ConfigurationFileGetter.DoesFileExist(filePath)) != null) ||
            (TestConfigurationFileExist(filePath => !string.IsNullOrEmpty(filePath)) != null));
 }