public EnvironmentSettings GetActiveEnviroment() { if (String.IsNullOrEmpty(ActiveEnvironmentKey) || !Environments.ContainsKey(ActiveEnvironmentKey)) { ActiveEnvironmentKey = Environments.First().Key; return(Environments.First().Value); } else { return(Environments[ActiveEnvironmentKey]); } }
private bool EnvironmentExists(string name) { return(Environments.ContainsKey(name)); }