Example #1
0
            public void GetsLongTermExpensesFromBusinessLogic()
            {
                var logic = new Mock<Logic>();
                var sut = new ExpensesController(logic.Object);

                sut.Index();

                logic.Verify(it => it.GetLongTermExpenses());
            }
Example #2
0
            public void GetsRecurringExpensesFromBusinessLogic()
            {
                var logic = new Mock<Logic>();
                GlobalSettings.SystemTime = () => new DateTime(2000, 1, 2, 3, 4, 5);
                var sut = new ExpensesController(logic.Object);

                sut.Index();

                logic.Verify(it => it.GetRecurringExpensesFor(2000, 1));
            }