0
bcaa4567 created
Hi all,
I am getting the following when I am trying to run my own unit test.
I have been able to run all the other unit tests that come with the project. It just failed to run for my own.
I had checked the following:
- my xxxAppService class is public in the Application project
- all my entities declarations are public in the Core project.
- I can run update-database to create tables in the SQL database.
- I can see my service in the swagger. But not able to call it, it display internal server error. and it won't even hit the break point in the service constructor. ( I guess it has the same error as the unit test)
I run out of idea to try. Anything will help!
thanks!
derek
xxxAppService' is waiting for the following dependencies:
- Service 'Abp.Domain.Repositories.IRepository`1[[xxx.xxx.Area, xxx.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered. ....
2 Answer(s)
-
0
got it. I forget to add the child entity in the DbContext. Hope it helps other person as well.
-
0
Thanks for feedback.