public void SetUp() { dataManager = new DataManager (new MockSensorInfoSource ()); dataThresholdCheck = new DataThresholdCheck (dataManager); dataThresholdCheck.SetConsumptionThreshold (2); dataThresholdCheck.SetEmissionThreshold (2); }
public DataThresholdCheck(DataManager dataSource) { this.dataManager = dataSource; }
private void InitializeData() { // Create the Business Logic objects dataManager = new DataManager (SensorInfoSourceFactory.GetSensorInfoSource ()); dataThresholdCheck = new DataThresholdCheck (dataManager); // Give the BL objects to the UI components sensorInfoChart.dataManager = dataManager; dataThresholdCheckPanel.dataThresholdCheck = dataThresholdCheck; dataThresholdCheckPanel.dataManager = dataManager; // Attach observers dataManager.Attach (sensorInfoChart); dataManager.Attach (dataThresholdCheckPanel); dataThresholdCheck.Attach (sensorInfoChart); dataThresholdCheck.Attach (dataThresholdCheckPanel); // Initialize control values InitializeSoftwareVersionCheckBoxes (); FilterByStartDateChanged (); FilterByEndDateChanged (); dataThresholdCheckPanel.Initialize (); }
public void SetUp() { dataManager = new DataManager (new MockSensorInfoSource ()); }