private void Init(string machineName, string environmentName, ICollection<EnvironmentSetting> settings)
{
if (string.IsNullOrWhiteSpace(machineName)) throw new ArgumentNullException(machineName);
if (string.IsNullOrWhiteSpace(environmentName)) throw new ArgumentNullException(environmentName);
if (settings == null) throw new ArgumentNullException(typeof(EnvironmentSettingsCollection).ToString());
Name = environmentName;
MachineName = machineName;
_settings = settings;
}