Ejemplo n.º 1
0
 public void SetUp()
 {
     _dateProvider  = new TestDateProvider();
     _budgetService = new BudgetService(_dateProvider);
     _budget        = new Budget(
         new DateTime(2019, 02, 1),
         new DateTime(2019, 02, 5),
         500.00);
 }
Ejemplo n.º 2
0
        public void SetUp()
        {
            _dateProvider  = new TestDateProvider();
            _budgetService = new BudgetService(_dateProvider);
            _budget        = new Budget(
                new DateTime(2019, 02, 1),
                new DateTime(2019, 02, 3),
                300.00);

            _budget.AddExpense("Wydatek 1", new DateTime(2019, 02, 1), 50);
            _budget.AddExpense("Wydatek 2", new DateTime(2019, 02, 2), 200);
            _budget.AddExpense("Wydatek 3", new DateTime(2019, 02, 3), 10);
        }