Fix recurring mock data
All checks were successful
continuous-integration/drone/push Build is passing
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user