public void Poll() { BoilerStatus boilerStatus = api.GetBoilerStatus(); if (isBrewing) { if (boilerStatus == BoilerStatus.EMPTY) { api.SetBoilerState(BoilerState.OFF); api.SetReliefValveState(ReliefValveState.CLOSED); DeclareDone(); } } }
public override bool IsReady() { return(_coffeeMakerApi.GetBoilerStatus() == BoilerStatus.NotEmpty); }