using System;
using AutoBogus;
using Flight.Flights.Enums;
using Flight.Flights.Features.CreateFlight;
using Flight.Flights.Features.CreateFlight.Commands.V1;
using Flight.Flights.Models;

namespace Unit.Test.Fakes;

public class FakeValidateCreateFlightCommand : AutoFaker<CreateFlightCommand>
{
    public FakeValidateCreateFlightCommand()
    {
        RuleFor(r => r.Price, _ => -10);
        RuleFor(r => r.Status, _ => (FlightStatus)10);
        RuleFor(r => r.AircraftId, _ => 0);
        RuleFor(r => r.DepartureAirportId, _ => 0);
        RuleFor(r => r.ArriveAirportId, _ => 0);
        RuleFor(r => r.DurationMinutes, _ => 0);
        RuleFor(r => r.FlightDate, _ => new DateTime());
    }
}
