public AirportConnector(string baseUrl) { var baseUri = new Uri(baseUrl); AirhostessEndpoint = new AirhostessEndpoint(baseUri, "airhostesses/"); CrewEndpoint = new CrewEndpoint(baseUri, "crews/"); PlaneEndpoint = new PlaneEndpoint(baseUri, "planes/"); PlaneTypeEndpoint = new PlaneTypeEndpoint(baseUri, "planetypes/"); TicketEndpoint = new TicketEndpoint(baseUri, "tickets/"); PilotEndpoint = new PilotEndpoint(baseUri, "pilots/"); FlightEndpoint = new FlightEndpoint(baseUri, "flights/"); DepartureEndpoint = new DepartureEndpoint(baseUri, "departures/"); }
public void WhenIPressSend() { var ticket = _context.Get <RegisterTicket>(TicketKeys.CreateTicketKey); TicketEndpoint.SendTicket(ticket); }