Open Closed

IocManager.Instance in integration tests #10577

arctechnicalteamaus created


  • What is your product version? ASPNET Zero 10.4
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core 5.0
  • What is ABP Framework version? 6.4

We use the latest ASPNET Zero genrated solution. We are adding a new integration test project. Most is working fine.

However, the generated class MyCompanyJwtSecurityTokenHandler under MyCompany.Web.Authentication.JwtBearer uses lots of IocManager.Instance to resolve dependencies. IocManager.Instance is fine normally, but in a test project, it doesn't resolve dependencies. IIocManager should be used in my reading, that is designed for test projects.

How should we fix this class? It is hard constructed by AuthConfigurer.Configure() method.

1 Answer(s)
  • 0
    ismcagdas created
    Support Team


    In unit tests, we are using LocalIocManager. Could you share the details of the problem you are having ?