dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.64k stars 25.28k forks source link

The example code does not match the description #28371

Open srichter2 opened 1 year ago

srichter2 commented 1 year ago

Hello, i am trying to follow this description, but it seems the text and code do not fit together or are partly wrong: in topic "Customize WebApplicationFactory" both sample code snippets are the same. Also in the second example SqlServer, In-Memory-Db and Sqlite are mixed up. Furthermore the dataseeding part is missing in the code.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Rick-Anderson commented 1 year ago

both sample code snippets are the same.

This line has the wrong snippet. The inMem line should be highlighted.

@jvandertil can you review this issue and advise?

jvandertil commented 1 year ago

I believe we removed the InMemory snippet to fix https://github.com/dotnet/AspNetCore.Docs.Samples/issues/91 , so we probably need to update the text to align better with what the snippet currently shows. I do believe that the data seeding part should still be in the sample, but I'll have to check that after work tomorrow.