@Test public void shouldCalculateISA() throws Exception { ISA isa = new ISA(3.33, 44, 1.4, 33.9, 23, 345, 11, null); ProgramProductISA programProductISA = new ProgramProductISA(3L, isa); Integer isaAmount = programProductISA.calculate(420L); assertThat(isaAmount, is(108)); }
public Integer calculate(Long population) { return isa.calculate(population); }
ProgramProductISA extends BaseModel { public Integer calculate(Long population) { return isa.calculate(population); } }
ProgramProductISA extends BaseModel { public Integer calculate(Long population) { return isa.calculate(population); } ProgramProductISA(); }
ProgramProductISA extends BaseModel { public Integer calculate(Long population) { return isa.calculate(population); } ProgramProductISA(); Integer calculate(Long population); Double getWhoRatio(); void setWhoRatio(Double whoRatio); Integer getDosesPerYear(); void setDosesPerYear(Integer dosesPerYear); Double getWastageFactor(); void setWastageFactor(Double wastageFactor); Double getBufferPercentage(); void setBufferPercentage(Double bufferPercentage); Integer getMinimumValue(); void setMinimumValue(Integer minimumValue); Integer getMaximumValue(); void setMaximumValue(Integer maximumValue); Integer getAdjustmentValue(); void setAdjustmentValue(Integer adjustmentValue); Long getPopulationSource(); void setPopulationSource(Long sourceId); }
ProgramProductISA extends BaseModel { public Integer calculate(Long population) { return isa.calculate(population); } ProgramProductISA(); Integer calculate(Long population); Double getWhoRatio(); void setWhoRatio(Double whoRatio); Integer getDosesPerYear(); void setDosesPerYear(Integer dosesPerYear); Double getWastageFactor(); void setWastageFactor(Double wastageFactor); Double getBufferPercentage(); void setBufferPercentage(Double bufferPercentage); Integer getMinimumValue(); void setMinimumValue(Integer minimumValue); Integer getMaximumValue(); void setMaximumValue(Integer maximumValue); Integer getAdjustmentValue(); void setAdjustmentValue(Integer adjustmentValue); Long getPopulationSource(); void setPopulationSource(Long sourceId);  }