Пример #1
0
 public ReservationsService
 (
     ICarInformationService carInfoProvider,
     IReservationsRepository reservationsRepository,
     IConnectionStringProvider connectionStringProvider
 )
 {
     _carInfoProvider        = carInfoProvider;
     _reservationsRepository = reservationsRepository;
     _connectionString       = connectionStringProvider.GetDbConnectionString();
 }
Пример #2
0
 public ReservationsRepository(IConnectionStringProvider connectionStringProvider)
 {
     _connectionString = connectionStringProvider.GetDbConnectionString();
 }
Пример #3
0
 public CarRepository(IConnectionStringProvider connectionStringProvider)
 {
     _connectionString = connectionStringProvider.GetDbConnectionString();
 }
Пример #4
0
 public UserGateway(IConnectionStringProvider provider, IUserSqlCommandFactory UserCommand)
 {
     this.connectionString = provider.GetDbConnectionString();
     userCommand           = UserCommand;
 }