Beispiel #1
0
        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()));
        }
Beispiel #2
0
 public static Currency BuildRandomValidCurrency()
 {
     return(Currency.BuildCurrency(id: _random.Next(), name: GetRandomString()));
 }