Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fjerne runWithTestClient fra integrasjonstestprosjekt #28

Open
thomaswolff opened this issue Nov 8, 2022 · 0 comments
Open

Fjerne runWithTestClient fra integrasjonstestprosjekt #28

thomaswolff opened this issue Nov 8, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@thomaswolff
Copy link
Collaborator

Kan fjerne runWithTestClient her: https://github.com/nrkno/dotnetskolen/blob/ferdig/test/integration/Tests.fs#L15-L25, og istedenfor ha denne koden øverst i Tests.fs:

let builder = createWebApplicationBuilder()
builder.WebHost.UseTestServer() |> ignore
let app = createWebApplication builder
app.StartAsync() |> Async.AwaitTask |> Async.RunSynchronously
let testClient = app.GetTestClient()

På denne måten settes test-serveren og -klienten opp kun én gang i kjøring av testene, og det er lavere kompleksitet for kursdeltakerne.

@thomaswolff thomaswolff added the enhancement New feature or request label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant