mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-17 08:26:28 +08:00
34 lines
798 B
C#
34 lines
798 B
C#
using System.Collections.Generic;
|
|
using Flight;
|
|
|
|
namespace Integration.Test.Fakes;
|
|
|
|
public static class FakeSeatsResponse
|
|
{
|
|
public static ListSeatsResponse Generate()
|
|
{
|
|
var result = new ListSeatsResponse();
|
|
result.Items.AddRange(new List<SeatsResponse>
|
|
{
|
|
new SeatsResponse()
|
|
{
|
|
FlightId = 1,
|
|
Class = SeatClass.Economy,
|
|
Type = SeatType.Aisle,
|
|
SeatNumber = "33F",
|
|
Id = 1
|
|
},
|
|
new SeatsResponse()
|
|
{
|
|
FlightId = 1,
|
|
Class = SeatClass.Economy,
|
|
Type = SeatType.Window,
|
|
SeatNumber = "22D",
|
|
Id = 2
|
|
}
|
|
});
|
|
|
|
return result;
|
|
}
|
|
}
|