summaryrefslogtreecommitdiff
path: root/rust/schist_core/tests/common/fakes/account.rs
blob: 0a1f8fec324a77cb39e1e3b85b7db9d6622a8b0f (plain)
1
2
3
4
5
6
7
8
9
10
use schist_core::{models::{account::Account, datetime_utc::DatetimeUtc}, traits::nowlike::Nowlike};

pub fn make_fake_account(id: i32) -> Account {
    Account {
        id,
        name: String::from("Joe Bloggs"),
        opening_balance: 0,
        opening_date: DatetimeUtc::now(),
    }
}