Base solution for your next web application
Open Closed

Unit test failed #7303


User avatar
0
dzungle created

Hello support team,

I just follow PhoneBookDemo video clip to write a simple unit test. But it failed with the following error message: Result StackTrace: at Abp.TestBase.AbpIntegratedTestBase1.EnsureClassRegistered(Type type, DependencyLifeStyle lifeStyle) in D:\Github\aspnetboilerplate\src\Abp.TestBase\TestBase\AbpIntegratedTestBase.cs:line 141 at Abp.TestBase.AbpIntegratedTestBase1.ResolveT in D:\Github\aspnetboilerplate\src\Abp.TestBase\TestBase\AbpIntegratedTestBase.cs:line 88 at Ips.Tests.Admin.CategoryManager_Test..ctor() in C:\Repos\Ips\aspnet-core\test\Ips.Tests\Admin\CategoryManager_Test.cs:line 20 Result Message: Abp.AbpException : Can not register ICategoryAppService. It should be a non-abstract class. If not, it should be registered before. Please, help me solve this problem. Thank you very much Dzung Le


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Please share your code. (Application service and test code)