예제 #1
0
        public void Exception()
        {
            _repo.GetAll().Returns(new List <Budget>());
            TotalAmountShouldBe(new DateTime(2018, 1, 1), new DateTime(2018, 1, 1), 0);
            BudgetCalculator budgetCalculator = new BudgetCalculator(_repo);

            var amount = budgetCalculator.GetAmount(new DateTime(2018, 2, 1), new DateTime(2018, 1, 1));
        }
예제 #2
0
 public void InitBudgetCalculator()
 {
     _budgetCalculator = new BudgetCalculator(_repo);
 }