Hi, I'm trying to migrate my module tests to 5.0.4 Core 2 & Angular. Module porting was sucessfull and works, but I've some problems to migrate test. Can you give me some clarifications about testing new plugin module? The error is :
Castle.MicroKernel.Handlers.HandlerException : Can't create component 'Uno.DossierSanitario.Application.DossierSanitarioAppService' as it has dependencies to be satisfied.
'Uno.DossierSanitario.Application.DossierSanitarioAppService' is waiting for the following dependencies:
- Service 'Uno.DossierSanitario.EntityFramework.Repositories.DossierRepository' which was registered but is also waiting for dependencies.
'Uno.DossierSanitario.EntityFramework.Repositories.DossierRepository' is waiting for the following dependencies:
- Service 'Abp.EntityFrameworkCore.IDbContextProvider`1[[Uno.DossierSanitario.EntityFramework.EntityFramework.DossierSanitarioContext, Uno.DossierSanitario.EntityFramework, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
- Service 'Abp.Domain.Repositories.IRepository`1[[Uno.DossierSanitario.Core.WriteModel.StateTypeData, Uno.DossierSanitario.Core, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
- Service 'Abp.Domain.Repositories.IRepository`2[[Uno.DossierSanitario.Core.ReferenceModel.ProfileData, Uno.DossierSanitario.Core, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null],[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]' which was not registered.
- Service 'Abp.Domain.Repositories.IRepository`2[[Uno.DossierSanitario.Core.ReferenceModel.OrganizationUnitData, Uno.DossierSanitario.Core, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null],[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]' which was not registered.
- Service 'Abp.Domain.Repositories.IRepository`1[[Uno.DossierSanitario.Core.WriteModel.StateData, Uno.DossierSanitario.Core, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
- Service 'Abp.Domain.Repositories.IRepository`1[[Uno.DossierSanitario.Core.WriteModel.WorkspaceData, Uno.DossierSanitario.Core, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
- Service 'Abp.Domain.Repositories.IRepository`1[[Uno.DossierSanitario.Core.WriteModel.StateTypeData, Uno.DossierSanitario.Core, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
- Service 'Uno.DossierSanitario.Core.DossierDossierIdGenerator' which was registered but is also waiting for dependencies.
'Uno.DossierSanitario.Core.DossierDossierIdGenerator' is waiting for the following dependencies:
- Service 'Abp.Domain.Repositories.IRepository`1[[Uno.DossierSanitario.Core.WriteModel.DossierData, Uno.DossierSanitario.Core, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
at Castle.MicroKernel.Handlers.DefaultHandler.AssertNotWaitingForDependency()
at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden)
at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired)
at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy)
at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)
at Castle.Windsor.WindsorContainer.Resolve[T]()
at Uno.DossierSanitario.Tests.DossierSanitarioTests..ctor() in c:\Uno\Production\Development\Development\Uno.2017\Products\Uno.DossierSanitario.Abp\test\Uno.DossierSanitario.Tests\DossierSanitarioTests.cs:line 23
Thanks
7 Answer(s)
-
0
Hi,
Have you added DossierData to your dbContext ?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Yes sure. As I said, the module work pefectly. Only tests have problems. I've migrated it from core 1.1 where tests are executed correctly.
I would like to have also some guide on how create test with custom plugin modules .
Thanks
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @ismcagdas, some news for my problem ?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @ivanosw1,
As long as your module dependencies are correct, this should work like before. If you think your module dependencies are correct, please send your project to us via email and let us check it. (<a href="mailto:[email protected]">[email protected]</a>).
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Email sent to <a href="mailto:[email protected]">[email protected]</a>
Thanks.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi, some news for my tests?
Have you checked my code?
Thanks
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
@ivanosw1 sorry for the delay, we will check it tomorrow and let you know the result.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)