Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
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: