Example #1
0
        public BookingCancelerDomainServices(IUnitOfWorkBookingCanceler _IUnitOfWorkBookingCanceler, IBookingCancelerValidations _IBookingCancelerValidations)
        {
            _UnitOfWorkBookingCanceler = _IUnitOfWorkBookingCanceler;
            _BookingRepository         = _UnitOfWorkBookingCanceler.GetRepository <Booking>();
            _JourneyRepository         = _UnitOfWorkBookingCanceler.GetRepository <Journey>();

            _BookingCancelerValidations = _IBookingCancelerValidations;
        }
Example #2
0
        public BookingDomainServices(IUnitOfWorkBooking _IUnitOfWorkBooking,
                                     IBookingBulkModifierServices _IBookingBulkModifierServices)
        {
            _UnitOfWorkBooking = _IUnitOfWorkBooking;
            _BookingRepository = _UnitOfWorkBooking.GetRepository <Booking>();

            _BookingBulkModifierServices = _IBookingBulkModifierServices;
        }
 public void TestInitialize()
 {
     Sut = ServiceLocator.Resolve <Vueling.XXX.Library.InfrastructureContracts.IUnitOfWorkBooking>();
     _BookingRepository = Sut.GetRepository <Vueling.XXX.Library.Entities.Booking>();
 }