Add integration tests

This commit is contained in:
ThompsonNye
2024-08-04 11:35:30 +02:00
parent 5383c5d1b0
commit 03e31f4c52
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());
}
}