Fix recurring mock data
All checks were successful
continuous-integration/drone/push Build is passing

Reusing the faker instance like I used to seems to (suddenly?!)
result in the same data, which newly results in a conflict response
This commit is contained in:
2025-06-24 20:01:45 +02:00
parent 559804765b
commit 5e084ab0a8
2 changed files with 9 additions and 10 deletions

View File

@@ -5,15 +5,15 @@ namespace Vegasco.Server.Api.Tests.Integration;
internal class CarFaker
{
private readonly Faker _faker = new();
internal CreateCar.Request CreateCarRequest()
{
return new CreateCar.Request(_faker.Person.FirstName);
Faker faker = new();
return new CreateCar.Request(faker.Person.FirstName);
}
internal UpdateCar.Request UpdateCarRequest()
{
return new UpdateCar.Request(_faker.Person.FirstName);
Faker faker = new();
return new UpdateCar.Request(faker.Person.FirstName);
}
}