Add integration tests

This commit is contained in:
2024-08-17 16:38:40 +02:00
parent ff2da66a22
commit 19b105b0e8
14 changed files with 583 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
using Bogus;
using Vegasco.WebApi.Cars;
namespace WebApi.Tests.Integration;
internal class CarFaker
{
private readonly Faker _faker = new();
internal CreateCar.Request CreateCarRequest()
{
return new CreateCar.Request(_faker.Vehicle.Model());
}
internal UpdateCar.Request UpdateCarRequest()
{
return new UpdateCar.Request(_faker.Vehicle.Model());
}
}