示例#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);
        }
示例#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));
         }
     }
 }
示例#4
0
 private TransactionLineInfo BuildTransactionLineInfo(YearMonth yearMonth)
 {
     return(new TransactionLineInfo(yearMonth.ToDate(ExecutionDay), -Available, "Budget - " + Category));
 }