private string Num_months_question(BudgetingMonths budgeting_months, string item)
        {
            var months = budgeting_months.Num_budgeting_months();
            var start  = budgeting_months.Budgeting_start_date().ToString("MMM", CultureInfo.CurrentCulture);
            var end    = budgeting_months.Budgeting_end_date().ToString("MMM", CultureInfo.CurrentCulture);

            return($"You're budgeting for {months} months, {start} til {end}. How many months of {item} do you want to budget for?");
        }
Beispiel #2
0
        public void Will_calculate_budgeting_start_date_using_next_unplanned_month_and_start_year()
        {
            // Arrange
            var budgeting_months = new BudgetingMonths
            {
                Next_unplanned_month = 2,
                Start_year           = 2019
            };

            // Act
            var result = budgeting_months.Budgeting_start_date();

            // Assert
            Assert.AreEqual(result.Month, budgeting_months.Next_unplanned_month);
            Assert.AreEqual(result.Year, budgeting_months.Start_year);
        }