public void CheckFeeElevenDayOvertime() { var startDate = new DateTime(2020, 04, 06, 14, 00, 00); var endDate = new DateTime(2020, 04, 20, 10, 00, 00); IBorrowingFeeCalculation feeCalculation = new DefaultBorrowingFeeCalculation(); var feePrice = feeCalculation.GetFee(startDate, endDate); Assert.AreEqual(1.2m, feePrice); }
public void CheckFeeFreeBorrow() { var startDate = new DateTime(2020, 04, 20, 14, 00, 00); var endDate = new DateTime(2020, 04, 22, 10, 00, 00); IBorrowingFeeCalculation feeCalculation = new DefaultBorrowingFeeCalculation(); var feePrice = feeCalculation.GetFee(startDate, endDate); Assert.AreEqual(0m, feePrice); }