Files
vegasco/tests/Vegasco.Server.Api.Tests.Integration/CarFaker.cs
ThompsonNye 5e084ab0a8
All checks were successful
continuous-integration/drone/push Build is passing
Fix recurring mock data
Reusing the faker instance like I used to seems to (suddenly?!)
result in the same data, which newly results in a conflict response
2025-06-24 20:01:45 +02:00

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);
}
}