Background is useful when you provide a general, user-readable (non-technical) background for your scenario. It should be used if you want to explicitly indicate this initialization in the text of your function.
But sometimes the logic of the U-turn (and setting) is implementation details and is implemented in Before , After or Around intercepts (because the reader of your specification does not need to know about these technical things).
Summary: use "Background" if you want to tell the reader about your background assumptions and use hooks when the background is implementation details.
In your example, the background is the best choice.
Aliaksei Kliuchnikau
source share