A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hello Everyone,
I updated EPiServer today from version 7.14.1 to 7.18.0 and now all my unit tests are failing!
EPiServer.ServiceLocation.ActivationExceptionActivation error occurred while trying to get instance of type ILanguageBranchRepository, key ""
I seem to be unable to create a fake ContentLanguage instance now in order to set ContentLanguage.Instance before my tests can run. It also does not seem possible to create a fake ILanguageBranchRepository. Previously it was fine to run
new ContentLanguage()
That constructor seems to be removed now and the new one requires an instance of an ILanguageBranchRepository.
new ContentLanguage(A.Fake<ILanguageBranchRepository>())
fails with the same error message though.
Here's my code that worked previously: