Overriding Service Dependencies in a Layer for Testing
Is there a way for one to override a service dependency in a
Then for testing purposes I wish to create a new
I've tested that this does not replace the
Layer? Say I have already constructed a layer like this: Then for testing purposes I wish to create a new
Layer (using MainLive) where I provide a failing implementation of MeasuringCup. I wish to use the existing MainLive to save me from building the entire service stack again.I've tested that this does not replace the
MeasuringCupLive implementation. Am I missing something? This is something I would think is useful.