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
19 lines
389 B
C#
19 lines
389 B
C#
using Bogus;
|
|
using Vegasco.Server.Api.Cars;
|
|
|
|
namespace Vegasco.Server.Api.Tests.Integration;
|
|
|
|
internal class CarFaker
|
|
{
|
|
internal CreateCar.Request CreateCarRequest()
|
|
{
|
|
Faker faker = new();
|
|
return new CreateCar.Request(faker.Person.FirstName);
|
|
}
|
|
|
|
internal UpdateCar.Request UpdateCarRequest()
|
|
{
|
|
Faker faker = new();
|
|
return new UpdateCar.Request(faker.Person.FirstName);
|
|
}
|
|
} |