/// <summary>
 /// Initializes a new instance of the <see cref="ReservationClientRepository"/> class.
 /// </summary>
 /// <param name="applicationSettings">The application settings.</param>
 public ReservationClientRepository(IApplicationSetting applicationSettings)
 {
     if (applicationSettings != null)
     {
         this.reservationClient = DIContainer.Instance.Resolve<IReservationClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ReservationServiceBaseAddress) });
     }
 }
Ejemplo n.º 2
0
 public ReservationProvider(IReservationClient client)
 {
     _client = client;
 }