public NumberOfRunningVMs( IConfigurationStore store, IVMData hyperVData) { this.configurationStore = store; this.hyperV = hyperVData; }
public ValidateLaunch(IConfigurationStore configurationStore, IVMData hypervData) { if (configurationStore != null && hypervData != null) { this.configurationStore = configurationStore; this.hyperVDataAccess = hypervData; } else { throw new ConfigurationErrorsException("Missing Configuration Store"); } }
private void LoadLaunchConditionRules() { this.hyperVDataAccess = new HyperVData(); this.rules.Add( new NumberOfRunningVMs( this.configurationStore,this.hyperVDataAccess)); }
private void LoadLaunchConditionRules() { this.hyperVDataAccess = new HyperVData(); this.rules.Add(new NumberOfRunningVMs(this.configurationStore, this.hyperVDataAccess)); }