Develop the Mock Service

Develop a mock service for saving data in-memory.

add function

The mock service will interact with an in-memory custom database for saving the data. We have a list of CategoryDto. With every new issue, one instance of CategoryDto that has a name and parent identifier is added to the list. A Singleton design pattern using enum is registered for the in-memory collection operation. The identifier field begins at one and grows by one for every new tally.

Get hands-on with 1200+ tech skills courses.