ConfigureServices(IAdditionalServiceCollection)
Adds services or mocks that are common to all tests in the current class. This method is called
by CreateTestContext(string?, string?) and the
services
parameter is the one passed to the CreateTestContext(IAdditionalServiceCollection, string?, string?), if any,
or an empty collection otherwise.
Declaration
protected virtual void ConfigureServices(IAdditionalServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IAdditionalServiceCollection | services |