You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add these informations to the usage documentation:
The library uses a singleton instance of the DbContext. Any calls to the DbContext during the arrange phase (either directly or through the HttpClient) might clogger the Change Tracker with existing entities. These tracked entities may cause attaching objects to fail within the context of the test, whereas it would have worked with a clean scoped DbContext instance. Is such case, the test writer should call Database.ChangeTracker.Clean() between arrange and acting calls.
The text was updated successfully, but these errors were encountered:
Add these informations to the usage documentation:
The library uses a singleton instance of the DbContext. Any calls to the DbContext during the arrange phase (either directly or through the HttpClient) might clogger the Change Tracker with existing entities. These tracked entities may cause attaching objects to fail within the context of the test, whereas it would have worked with a clean scoped DbContext instance. Is such case, the test writer should call
Database.ChangeTracker.Clean()
between arrange and acting calls.The text was updated successfully, but these errors were encountered: