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