public static Spending BuildRandomValidPending() { Currency currency = Currency.BuildCurrency(id: _random.Next(), name: GetRandomString()); return(Spending.BuildSpending( amount: GetRandomId(), comment: GetRandomString(), currency: currency, spender: Spender.BuildSpender( id: _random.Next(), currency: currency, firstName: GetRandomString(), lastName: GetRandomString()), date: GetRandomDate(dayStart: -90, dayEnd: 0), nature: GetRandomNature())); }
public static Currency BuildRandomValidCurrency() { return(Currency.BuildCurrency(id: _random.Next(), name: GetRandomString())); }