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)); }
public Spending SetNature(SpendingNature nature = SpendingNature.Misc) { Nature = nature; return(this); }