skmkqw
skmkqw
CC#
Created by skmkqw on 5/14/2024 in #help
Cant create seed data for integrational tests
I found the problem. The devil was in details) The is thing is by default Identity refuses to register users who dont have at least 1 uppercase letter in password. Changing "password123!" to "Password123!" made it work.
12 replies
CC#
Created by skmkqw on 5/14/2024 in #help
Cant create seed data for integrational tests
im quite sure it's in the right place. At least all the other resources are working well
12 replies
CC#
Created by skmkqw on 5/14/2024 in #help
Cant create seed data for integrational tests
I'm not sure where the problem is: in configuring test database or in seeding data
12 replies
CC#
Created by skmkqw on 5/14/2024 in #help
Cant create seed data for integrational tests
Yes, i did one. Api is working good in practice
12 replies
CC#
Created by skmkqw on 5/14/2024 in #help
Cant create seed data for integrational tests
I can also pin test results if you want to
12 replies
CC#
Created by skmkqw on 5/14/2024 in #help
Cant create seed data for integrational tests
For example my test with get all users enpoint always returns 0 users while 3 is the expected result. I'm 100% sure the problem is that users seed data in not in the database when it' created (it returns users when i test it in swagger). So i cant really understand how to insert these example users in my test database. It works for projects and tasks (other resources), but my user model inherits from IdentityUser. Project link: https://github.com/skmkqw/ProjectManagementAPI/tree/Authentification
12 replies
CC#
Created by skmkqw on 5/2/2024 in #help
Is my unit testing approach correct?
thanks
13 replies
CC#
Created by skmkqw on 5/2/2024 in #help
Is my unit testing approach correct?
thanks. i'll look through my code again, and then start learning integrational tests
13 replies
CC#
Created by skmkqw on 5/2/2024 in #help
Is my unit testing approach correct?
Thanks. As i can understand, units will be suitable for projects with more businness logic, when mine is very simple, so i just need to be sure that my data flow is ok
13 replies