Situation
A Web API application has to warm up a cache right after starting in an IHostedService. For example, a dictionary of cities' telephone codes from a relational database. How are component tests able to help to handle it? One test required an empty dictionary and another test required several records.
Use cases
- A class with tests where a new app instance started for every test.
- A class with tests where an app is configured once (the content of the dictionary of telephone codes) started once and used for every test.
What is required from Enhanced.Testing.Component
- Configured version of
IComponent with started harnesses.
- Separate actions of starting an app under tests and starting harnesses.
Situation
A Web API application has to warm up a cache right after starting in an
IHostedService. For example, a dictionary of cities' telephone codes from a relational database. How are component tests able to help to handle it? One test required an empty dictionary and another test required several records.Use cases
What is required from
Enhanced.Testing.ComponentIComponentwith started harnesses.