Develop the Mock Service
Explore how to develop a mock service that manages an in-memory list of PersonDto objects, implementing create, find, remove, and edit operations. Understand using a singleton pattern for the database and how to handle data updates in one-to-many unidirectional relationships.
We'll cover the following...
We'll cover the following...
add function
The mock service will network with an in-memory convention database to save the data which will be consumed by the mock user interface. We will initially see the additional functionality. We have a list of PersonDto and with every new instance, one instance of PersonDto that has a Person and phone number is added to the list. A Singleton design pattern using enum is followed ...