Skip to content

Commit

Permalink
Merge pull request #1046 from Klantinteractie-Servicesysteem/Hotfix/N…
Browse files Browse the repository at this point in the history
…iewusEnWerkInstruction11

PC-686 Use await using for proper disposal of objects
  • Loading branch information
felixcicatt authored Feb 6, 2025
2 parents 6253547 + bd8e120 commit e1e85d5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ public async Task Scenario11()

await Step("Given there is exactly 1 werkinstructie with this text in the title");

var werkbericht = await Page.CreateBerichtAsync(new() { Title = uniqueTitle, BerichtType = BerichtType.Werkinstructie });
await using var werkbericht = await Page.CreateBerichtAsync(new() { Title = uniqueTitle, BerichtType = BerichtType.Werkinstructie });

await Step("And there is exactly 1 nieuwsbericht with this text in the title");
var nieuws = await Page.CreateBerichtAsync(new() { Title = uniqueTitle, BerichtType = BerichtType.Nieuws });

await using var nieuws = await Page.CreateBerichtAsync(new() { Title = uniqueTitle, BerichtType = BerichtType.Nieuws });

await Step("And the user is on the HOME Page");

Expand Down

0 comments on commit e1e85d5

Please sign in to comment.