Base solution for your next web application
Open Closed

IocManager.Instace Integration Test - Container null - Cannot resolve Dependency Injection #10857


User avatar
0
[email protected] created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 8.9.1
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? Net Core

I am trying to do an Integration Unit Tes, but it is not possible because in some places of the codes use IocManager.Instance.

For example.

In this case the container is null, and it cannot resolve the dependency injection for some services.

Could you please validate if it is ok, or I would need to change something?


3 Answer(s)