feat: add provides ressource to service builder #168
Labels
enhancement
add or extend existing functionality
feature request
requesting a new feature
improvement
improved code or handling
testing
Related to testing
A service acts as container for commands and subscriptions.
In real world, commands and subscriptions will need resources like database connections.
Instead of writing custom classes or to directly import connections, it might make sense, if the service builder gets a
.provides
method.The service builder:
Command and subscription functions:
This also allows better testing, as the resources can be stubbed via the mock context.
Also, later on, it can be used for documentation and visualization.
The text was updated successfully, but these errors were encountered: