Closed vnvizitiu closed 5 years ago
Hi,
The BuildUp
is on the IDepenedencyResolver
interface which can be requested from the IServiceProvider
by calling the GetService(typeof(IDepenedencyResolver))
.
If you want to use them in unit tests mostly you can check the tests of this sample app, it uses one of the Mocking extensions for Stashbox which allows accessing the underlying Stashbox container (for WireUp) and also can used for auto mocking.
Let me know if you have any more questions, or suggestions! Thanks!
Thank you for the clarification and the quick response.
Hello,
I was wondering if I can use the container methods (like WireUp and BuildUp), aside from
Resolve
when getting the StashboxServiceProvider via IServiceProvider.Mostly interested in this for unit testing.
Thanks, Vlad V.