NewUserWithName creates a user with a name and returns the user.
(id uint, name string)
| 57 | |
| 58 | // NewUserWithName creates a user with a name and returns the user. |
| 59 | func (d *Database) NewUserWithName(id uint, name string) *model.User { |
| 60 | user := &model.User{ID: id, Name: name} |
| 61 | d.CreateUser(user) |
| 62 | return user |
| 63 | } |
| 64 | |
| 65 | // App creates an application and returns a message builder. |
| 66 | func (ab *AppClientBuilder) App(id uint) *MessageBuilder { |