Пример #1
0
 public static Spending BuildSpending(
     long?id               = null,
     Spender spender       = null,
     DateTime?date         = null,
     SpendingNature nature = SpendingNature.Misc,
     decimal?amount        = null,
     Currency currency     = null,
     string comment        = null)
 {
     return(new Spending()
            .SetId(id)
            .SetSpender(spender)
            .SetSpendingDate(date)
            .SetNature(nature)
            .SetAmount(amount)
            .SetCurrency(currency)
            .SetComment(comment));
 }
Пример #2
0
 public Spending SetNature(SpendingNature nature = SpendingNature.Misc)
 {
     Nature = nature;
     return(this);
 }