MockerBlazorTestBase<(Of <(<'T>)>)>..::..ConfigureServices Property

Gets the configure services.

Namespace:  FastMoq.Web.Blazor
Assembly:  FastMoq.Web (in FastMoq.Web.dll)

Syntax


[ExcludeFromCodeCoverageAttribute]
protected virtual Action<TestServiceProvider, IConfiguration, Mocker> ConfigureServices { get; set; }
<ExcludeFromCodeCoverageAttribute> _
Protected Overridable Property ConfigureServices As Action(Of TestServiceProvider, IConfiguration, Mocker)
	Get
	Set
[ExcludeFromCodeCoverageAttribute]
protected:
virtual property Action<TestServiceProvider^, IConfiguration^, Mocker^>^ ConfigureServices {
	Action<TestServiceProvider^, IConfiguration^, Mocker^>^ get ();
	void set (Action<TestServiceProvider^, IConfiguration^, Mocker^>^ value);
}

Field Value

The configure services.

Examples


Setup Services.
C#
protected override Action<TestServiceProvider, IConfiguration, Mocker> ConfigureServices => (services, c, m) => services.AddSingleton<IWeatherForecastService, WeatherForecastService>();