public void 日期區間不合理() { var start = new DateTime(2018, 7, 1); var end = new DateTime(2018, 6, 15); _accounting.TotalAmount(new Period(start, end)); }
public void ValidateDate() { var starDate = new DateTime(2019, 01, 05); var endDate = new DateTime(2019, 01, 04); var totalAmount = _accounting.TotalAmount(starDate, endDate); AmountShouldBe(0, totalAmount); }
public void 日期區間無Budget() { var budgetRepository = Substitute.For <IBudgetRepository>(); var accounting = new Accounting(budgetRepository); var start = new DateTime(2018, 6, 1); var end = new DateTime(2018, 6, 1); var totalAmount = accounting.TotalAmount(start, end); Assert.AreEqual(0m, totalAmount); }