Fixed the StubSensor related compiling error.
Fixed compiling error: ‘Alarm’ has not been declared.
Fixed compiling error: ‘HIGH_PRESSURE_THRESHOLD’ is not a member of ‘Alarm’.
Fixed compiling error: no matching function for call to ‘Alarm::Alarm(StubSensor*&)’.
Fixed make error: undefined reference to 'StubSensor::arrangeNextPressureValue(double)'.
Fixed warning: unused parameter ‘transducer’ [-Wunused-parameter].
Working on TODO: Depending on a concrete Sensor violates the Dependency Inversion Principle and Open-Closed Principle.
Finished TODO: Depending on a concrete Sensor violates the Dependency Inversion Principle and Open-Closed Principle.
Fixed compiling error: no matching function for call to ‘Alarm::Alarm(Sensor*)’.
Made Transducer in action.
Finished TODO: a normal pressure value should not raise the alarm.
Working on TODO: a pressure value outside the range should raise the alarm.
Added test a_pressure_value_outside_the_range_should_raise_the_alarm with the Assert part of it.
Finished TODO: a pressure value outside the range should raise the alarm.
Working on TODO: a normal pressure value after a value outside the range should stop the alarm.
Added test a_normal_pressure_value_after_a_value_outside_the_range_should_stop_the_alarm with the Assert part of it.
Wrote the Act and Arrange parts of test a_normal_pressure_value_after_a_value_outside_the_range_should_stop_the_alarm.
Fixed error: ‘arrangeNextTwoPressureValues’ was not declared in this scope.
Finished TODO: a normal pressure value after a value outside the range should stop the alarm.