Skip to content

Possibility to start app under tests several times, but harnesses only once #2

@sergey-rubtsov-05

Description

@sergey-rubtsov-05

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions