private void TotalAmountShouldBe(decimal expected, DateTime start, DateTime end)
 {
     Assert.AreEqual(expected, _account.TotalAmount(start, end));
 }
        private void TotalAmountShouldBe(int expected, DateTime start, DateTime end)
        {
            var totalAmount = _accounting.TotalAmount(start, end);

            Assert.AreEqual(expected, totalAmount);
        }
Пример #3
0
        //[Test]
        //public void Daily_Amount_is_10()
        //{
        //    GivenBudgets(new Budget { YearMonth = "201004", Amount = 300 });
        //    TotalAmountShouldBe(20, new DateTime(2010, 4, 1), new DateTime(2010, 4, 2));
        //}

        private void TotalAmountShouldBe(int expect, DateTime start, DateTime end)
        {
            Assert.AreEqual(expect, _accounting.TotalAmount(start, end));
        }