skmkqw
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
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