Fix tests and actually use the account name

This commit is contained in:
Marc Di Luzio 2020-06-02 18:06:34 +01:00
parent 42534ac545
commit 4c76530832
3 changed files with 12 additions and 7 deletions

View file

@ -47,6 +47,7 @@ func (a *Accountant) RegisterAccount(name string) (acc Account, err error) {
// Set the account ID to a new UUID
acc.Id = uuid.New()
acc.Name = name
// Verify this acount isn't already registered
for _, a := range a.Accounts {