コード例 #1
0
 public void SetUp()
 {
     _sensor = new FakeSensor();
     _heater = new FakeHeater();
     _window = new FakeWindow();
     uut     = new Refactored.ECS(28, 28, _sensor, _heater, _window);
 }
コード例 #2
0
        public void Setup()
        {
            int thresholdUpperTemp = 20;
            int thresholdLowerTemp = 10;

            _tempSensor = Substitute.For <ITempSensor>();
            _heater     = Substitute.For <IHeater>();
            _window     = Substitute.For <IWindow>();
            _uut        = new Refactored.ECS(thresholdUpperTemp, thresholdLowerTemp,
                                             _tempSensor, _heater, _window);
        }