Hi, I know we shouldn't add ICurrentUser in domain layer because domain layer should be independent of current user. but I have some logic in the domain which I don't want to expose to the outer layer but I need current user Id for that logic. how can I handle this.
is that okay to access ICurrentUser in domain manager?
Hi, I have bunch of sql insert statements store in .sql file. This file is being loaded and executed by the data seeder. when DbMigrator runs and it successfully populated the database. but when I run unit tests, all are getting failed because when sqlite seeds the database for tests. it loads that .sql file I'm getting the following error
because IF EXISTS statement doesn't exist in sqllite but its fine with sql server.
how can I handle this situation. plus, if I don't want unit tests to seed specific data how can I handle that
following is the screenshot of .sql file for your reference
Hi, how can I return different http status code from application layer methods.
for example, for post request, ABP by default returns 200 but I want to return 201.
how can I do that in application layer without going thru controllers.
Hi, when I add the following module to the application layer typeof(AbpBackgroundWorkersHangfireModule). all the application tests starts failing
following is the screenshot of the application module class
following is the screenshot of error I'm getting after adding this module typeof(AbpBackgroundWorkersHangfireModule)
Hi,
How can I test custom controllers in HttpApi layer. and where should I write tests because there is no test projects for HttpApi layer.
Hi,
is there any way I can intercept the call after user succesfully login with external providers because I need to make call to other services in order to update the local profile for the user.
If you're creating a bug/problem report, please include the followings:
Hi,
I want my AppServices to return Fake or Real data based on how clients call. Client can either ask for Real or Test data. so what is the best way to implement it because I have multiple AppServices and each has multiple actions.
Should I create 2 AppServices: RealAppService & FakeAppService
plus, what is the best way for client to ask for real or fake data. should client pass parameter in request header and if they do in the request header. how can I intercept the request and based on header value instantiate the real or fake app service.
Hi, after updating the ABP from V6.0 to V7.2.2.** Random tests are failing **
following is the screenshot of ABP Sample tests is failing sometimes I'm getting Null Reference Exception and Sometime System.InvalidOperationException : SqliteConnection does not support nested transactions.
I have tried to add the context.Services.AddAlwaysDisableUnitOfWorkTransaction(); but the issue is still there