The code has usage of
and it makes a problem during writing UnitTest.
It is not a possibility to include that as a parameter in the call of the method from many reasons.
Is there any way to mock that WebRequestContext.Localization?
I checked Sdl.Web.Tridion.Tests which comes with DXA 2.2 solution, but didn't find it.
Update: Our implementation has in some of the method usages of WebRequestContext.Localization.GetConfig(".") and when we write our own Unit Test to test that Business Logic it fails since there is nothing for WebRequestContext.Localization.