Esempio n. 1
0
        public void SetUp()
        {
            dataManager = new DataManager (new MockSensorInfoSource ());
            dataThresholdCheck = new DataThresholdCheck (dataManager);

            dataThresholdCheck.SetConsumptionThreshold (2);
            dataThresholdCheck.SetEmissionThreshold (2);
        }
Esempio n. 2
0
 public DataThresholdCheck(DataManager dataSource)
 {
     this.dataManager = dataSource;
 }
Esempio n. 3
0
        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 ();
        }
Esempio n. 4
0
 public void SetUp()
 {
     dataManager = new DataManager (new MockSensorInfoSource ());
 }