public void SetUp()
        {
            _carInfoProvider  = Substitute.For <ICarInformationService>();
            _userInfoProvider = Substitute.For <IUserInformationService>();

            _target = new ReservationOptionsValidator(_carInfoProvider, _userInfoProvider);
        }
Example #2
0
        public void SetUp()
        {
            _connectionStringProvider = new ConnectionStringProvider();
            _carInfoProvider          = Substitute.For <ICarInformationService>();
            _reservationsRepository   = Substitute.For <IReservationsRepository>();

            _target = new ReservationsService(_carInfoProvider, _reservationsRepository, _connectionStringProvider);
        }
 public ReservationOptionsValidator
 (
     ICarInformationService carInfoProvider,
     IUserInformationService userInfoProvider
 )
 {
     _carInfoProvider  = carInfoProvider;
     _userInfoProvider = userInfoProvider;
 }
Example #4
0
        public void SetUp()
        {
            _carInfoProvider        = Substitute.For <ICarInformationService>();
            _userInfoProvider       = Substitute.For <IUserInformationService>();
            _reservationsService    = Substitute.For <IReservationsService>();
            _reservationsRepository = Substitute.For <IReservationsRepository>();

            _target = new ReservationsRunner(_carInfoProvider, _userInfoProvider, _reservationsService, _reservationsRepository);
        }
Example #5
0
 public ReservationsService
 (
     ICarInformationService carInfoProvider,
     IReservationsRepository reservationsRepository,
     IConnectionStringProvider connectionStringProvider
 )
 {
     _carInfoProvider        = carInfoProvider;
     _reservationsRepository = reservationsRepository;
     _connectionString       = connectionStringProvider.GetDbConnectionString();
 }
Example #6
0
 public ReservationsRunner
 (
     ICarInformationService carInfoProvider,
     IUserInformationService userInfoProvider,
     IReservationsService reservationsService,
     IReservationsRepository reservationsRepository
 )
 {
     _carInfoProvider        = carInfoProvider;
     _userInfoProvider       = userInfoProvider;
     _reservationsService    = reservationsService;
     _reservationsRepository = reservationsRepository;
 }