public PumpCompressionCtrl(IStocking stocking) { _stocking = stocking; var stockingPressureGauge = new StockingPressureGauge(stocking); stockingPressureGauge.AboveSufficientCompressionPressureEvent += OnAboveSufficientCompressionPressureEvent; stockingPressureGauge.BelowSufficientDecompressionPressureEvent += OnBelowSufficientDecompressionPressureEvent; }
public StockingPressureGauge(IStocking stocking) { _stocking = stocking; MeasureStockingPressure(); }