예제 #1
0
        public void SetUp()
        {
            dataManager = new DataManager (new MockSensorInfoSource ());
            dataThresholdCheck = new DataThresholdCheck (dataManager);

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