/// <summary> /// Creates a new configuration if the config does not exist. /// </summary> private static void CreateNewConfigIfNotExist() { if (!LoaderConfigReader.ConfigurationExists()) { LoaderConfigReader.WriteConfiguration(new LoaderConfig()); } }
/// <summary> /// Creates a new configuration if the config does not exist. /// </summary> private static LoaderConfig CreateNewConfigIfNotExist() { var configReader = new LoaderConfigReader(); if (!configReader.ConfigurationExists()) configReader.WriteConfiguration(new LoaderConfig()); return configReader.ReadConfiguration(); }
/* Before Test */ public TempLoaderConfigCreator() { _configReader = new LoaderConfigReader(); if (_configReader.ConfigurationExists()) { _originalConfig = _configReader.ReadConfiguration(); } else { _configReader.WriteConfiguration(new LoaderConfig()); } }