summaryrefslogtreecommitdiff
path: root/rust/schist_fakes/src/account.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/schist_fakes/src/account.rs')
-rw-r--r--rust/schist_fakes/src/account.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/rust/schist_fakes/src/account.rs b/rust/schist_fakes/src/account.rs
new file mode 100644
index 0000000..1cee16e
--- /dev/null
+++ b/rust/schist_fakes/src/account.rs
@@ -0,0 +1,11 @@
+use schist_models::{account::Account, datetime_utc::DatetimeUtc};
+use schist_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(),
+ }
+}