namespace Packt.CloudySkiesAir.Chapter10;

public record class BoardingPass(string Passenger) {
  public required FlightInfo Flight { get; init; }
  public required int Group { get; init; }
  public required string Seat { get; init; }

  public override string ToString() =>
    $"{Passenger} w grupie {Group} " +
    $"do miejsca {Seat} lotu {Flight.Id}";
}
