]> juplo.de Git - demos/kafka/chat/commit
feat: Introduced method `createUser()` in `UserService`
authorKai Moritz <kai@juplo.de>
Sun, 12 Oct 2025 07:20:07 +0000 (09:20 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 13 Oct 2025 18:30:50 +0000 (20:30 +0200)
commitbac76d16e2af298a1a64e3fcaa4b06b947b64f75
tree074bcebfd9f588be8091ad9766b14e7dbab71cce
parent8a09c16e0b2476cf1675839756f49f5e2b5c1cda
feat: Introduced method `createUser()` in `UserService`

* The method requests the creation of a new user and remembers the created
  instance of `User`, if the requests ist successful.
* The remembered `User` can be retrieved via `UserService.getUser()`.
* Also added a pact between the `UserService` and the
  `ChatBackendController`, that formulates the expectations of the
  `UserService`, that are not implemented yet by the backend.
pacts
src/app/chatroom/chatroom.model.ts
src/app/chatroom/chatroom.service.ts
src/app/user/user.component.spec.ts
src/app/user/user.component.ts
src/app/user/user.service.pact.spec.ts [new file with mode: 0644]
src/app/user/user.service.spec.ts
src/app/user/user.service.ts