public void ChargeShouldBeAppliedForAnHour() { var result = shortStay.CalculateCharges(new DateTime(2017, 09, 07, 14, 30, 0), new DateTime(2017, 09, 07, 15, 30, 0)); Assert.Equal(_hourlyCharge, result); }
public void ChargeShouldBeZeroOutSideOfChargingPeriod() { var result = shortStay.CalculateCharges(new DateTime(2017, 09, 07, 19, 30, 0), new DateTime(2017, 09, 07, 20, 30, 0)); Assert.Equal(_noCharge, result); }
public void ChargeShouldBeAppliedForFullDay() { var result = longStay.CalculateCharges(new DateTime(2017, 09, 07, 0, 0, 0), new DateTime(2017, 09, 07, 0, 0, 0)); Assert.Equal(_perDayCharge, result); }