private void CheckFlightStatus() { var flightService = new FlightServiceClient(); var bookingService = new BookingServiceClient(); try { Log("start cycles"); flightService.CheckFlightStatuses( DateTime.UtcNow.Date, DateTime.UtcNow.Date.AddDays(1), DefaultUserId ); Log("check flight status finished"); bookingService.SimulateBookings( DateTime.UtcNow.Date, DateTime.UtcNow.Date.AddDays(1), DefaultUserId ); Log("simulate bookings finished"); } catch (Exception ex) { Error(ex); } finally { flightService.Close(); } }
public void CheckFlightStatuses() { FlightServiceClient flightService = new FlightServiceClient(); try { flightService.CheckFlightStatuses( DateTime.UtcNow.Date, DateTime.UtcNow.Date.AddDays(1), DefaultUserId ); } catch (Exception ex) { Assert.Fail(message: $"Failed to Check Flight Statuses, message: {ex.Message}"); } finally { flightService.Close(); } }