Skip to content

Exception when configuring MsSqlTestcontainer #439

Answered by HofmeisterAn
EnisMulic asked this question in Q&A
Discussion options

You must be logged in to vote

That's on purpose. As far as I know, you can not set the username and database through the MSSQL container start:
https://github.com/HofmeisterAn/dotnet-testcontainers/blob/859826e98e619000ffe5029f088ed9db86946d6f/src/DotNet.Testcontainers/Configurations/Modules/Databases/MsSqlTestcontainerConfiguration.cs#L44

You need to seed your database afterwards.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by EnisMulic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants