Hi Dariusz,
This issue does not related to Commerce but after a fast investigation, I found that it's because of there is no "Modules" of InitializationEngine.
I do not testing in code yet but you can refer this code segment and check it:
public void Setup()
{
var moduleList = new List<IInitializableModule>();
var dummyInitializableHttpModule = new TestInitializableHttpModule();
moduleList.Add(dummyInitializableHttpModule);
_engine = new InitializationEngine((IEnumerable<IInitializableModule>)null, HostType.TestFramework)
{
Modules = moduleList
};
_engine.Initialize();
}
public class TestInitializableHttpModule : IInitializableHttpModule
{
public void InitializeHttpEvents(System.Web.HttpApplication application)
{ }
public void Initialize(InitializationEngine context)
{ }
public void Uninitialize(InitializationEngine context)
{ }
}
Hello,
I'm trying to setup InitializationEngine for integration tests, but got the following error when invoking Initialize method on the engine:
I simplified the code to the minimum and it is as below:
The forceBinFolderScan flag in configuration file in episerver.framework node is set to true:
Episerver package versions (target = net461):
Any ideas what should be setup in order to have it working properly?