Develop the Mock Service

Develop a mock service for saving data in-memory.

add function

Let’s begin with a simple add method to the in-memory database. This is based on the Singleton pattern implemented as an enum.

Get hands-on with 1200+ tech skills courses.