Exemple #1
0
        public void ToDate_ShouldConvertToBusinessDay(int originalDay, int businessDay)
        {
            YearMonth yearMonth = new YearMonth(2019, 10);

            DateTime date = yearMonth.ToDate(originalDay);

            Assert.Equal(new DateTime(2019, 10, businessDay), date);
        }
Exemple #2
0
        public void ToDate_ShouldConsiderValidLastDay(int month, int originalDay, int businessDay)
        {
            YearMonth yearMonth = new YearMonth(2019, month);

            DateTime date = yearMonth.ToDate(originalDay);

            Assert.Equal(new DateTime(2019, month, businessDay), date);
        }
 public virtual void IncludeLines(List <TransactionLine> lines, YearMonth from, YearMonth to)
 {
     for (YearMonth i = ChooseInitialYearMonth(from); i <= ChooseFinalYearMonth(to); i = i.NextMonth())
     {
         if (!ExistsExecutedRecurringTransactionLine(lines, i))
         {
             lines.Add(
                 new RecurringTransactionLine(Id, new TransactionLineInfo(i.ToDate(Day), Amount, Description), Classification));
         }
     }
 }
 private TransactionLineInfo BuildTransactionLineInfo(YearMonth yearMonth)
 {
     return(new TransactionLineInfo(yearMonth.ToDate(ExecutionDay), -Available, "Budget - " + Category));
 }