© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
skmkqw

Integrational testing and authentification

Hello evereybody. I've recently updated my projects with authentification. Before that, i managed users as simple database resource with simple CRUD operations. Now my AppUser inherits from IdentityUser. I also added a new endpoint for user registration. But now i need to update my integrational tests and im having problems with inserting seed data into test database. How to fix my WebApplicationFactory and Utilites classes to add/delete seede users to database?
Utilities.cs4.42KB
TestWebApplicationFactory.cs2.2KB
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cant create seed data for integrational tests
C#CC# / help
2y ago
Testing practices and libraries
C#CC# / help
2y ago
Registering IDbCommand and autowiring and testing
C#CC# / help
3y ago
❔ IAsyncEnumerable and IQueriable unit testing
C#CC# / help
4y ago