Replies: 2 comments 5 replies
-
@aivascu I was just thinking today that I really like the ability to unfreeze. Makes sence to me with a common operation. How can I aid in moving this feature along. I believe unfreezing something frozen should be pretty straight forward, not sure about the temporary freezing case, except that it seems handy. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I know that this is an old topic but I have a question. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unfreezing has been a frequently requested feature. This issue is aimed to consolidate the discussions around the requirements, the API and the necessity of this feature.
The common requested trait was that the
Fixture
should allow to revert a previous request to Freeze / Inject / Register / Customize a type request.Explicit customization ejection
Since
.Freeze<T>()
,.Inject<T>()
,.Register<T>()
and.Customize<T>()
are loosely performing the same actions, it makes sense for them to have the same reset action. This common action could potentially be performed by a.Eject<T>()
(the name to be defined) method on theFixture
class.Proposed API
Auto-Ejecting customization
Another often requested aspect of the "ejection" is usually a customization reset after a condition has been met. Usually after the first successful resolution of an instance using the customization.
Proposed API
Beta Was this translation helpful? Give feedback.
All reactions