Open sandboxFocus

Method ConfigureServices

ConfigureServices(IAdditionalServiceCollection)

Adds services or mocks that are common to all tests in the current class. This method is called by CreateTestContext(IAdditionalServiceCollection) and the services parameter is the one passed to the CreateTestContext(IAdditionalServiceCollection), if any, or an empty collection otherwise.

Declaration
protected virtual void ConfigureServices(IAdditionalServiceCollection services)
Parameters
Type Name Description
IAdditionalServiceCollection services