private void InitLuggage() { Luggage luggage1 = new Luggage(); luggage1.Weight = 50; Luggage luggage2 = new Luggage(); luggage2.Weight = 60; Luggages.Add(luggage1); Luggages.Add(luggage2); }
private void InitCoupons() { Coupon coupon1 = new Coupon(); Coupon coupon2 = new Coupon(); Coupon coupon3 = new Coupon(); coupon1.Id = 1; coupon1.Luggages = Luggages; coupon1.Flight = Flights.Find(f => f.Id == 1); coupon2.Id = 2; coupon2.Flight = Flights.Find(f => f.Id == 2); coupon2.Luggages.Add(Luggages.Find(l => l.Weight == 50)); coupon3.Id = 3; Coupons.Add(coupon1); Coupons.Add(coupon2); Coupons.Add(coupon3); Flights.Find(f => f.Id == 1).Coupons.Add(coupon1); Flights.Find(f => f.Id == 2).Coupons.Add(coupon2); }
/// <summary> /// Used to add luggage to terminal storage /// </summary> internal void AddLuggage(Luggage luggage) { Luggages.Enqueue(luggage); }
/// <summary> /// Used to close terminal /// </summary> internal void Close() { Luggages.Clear(); RemoveFlightFromTerminal(); IsOpen = false; }