PluginContextInitialize Method |
Fills the context with Api services on plugin startup.
This method isn't intended to be called from plugin.
Namespace:
Resto.Front.Api
Assembly:
Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntax Remarks
Primarily this method is used by Api infrastructure, but it also can be used in unit tests for checking plugin's code.
When writing tests against code which is using static properties of
PluginContext,
you can initialize the context with dummy (mocked) services.
Services are retrieved from the provider when corresponding static properties are called,
so for testing purposes you may provide minimum set of services which are actually used in the code being tested.
See Also