public void InjectDependencies()
            {
                mockAvailabilityManager = MockRepository.GenerateMock<IAvailabilityManager>();
                onlineAvailabilitySearchService.AvailabilityManager = mockAvailabilityManager;

                OnlineAutoMapperConfig.Configure();
                CommonAutoMapperConfig.Configure();
            }
 public void InjectDependencies()
 {
     mockAvailabilityManager = MockRepository.GenerateMock<IAvailabilityManager>();
     PropertyManagementSystemService.AvailabilityManager = mockAvailabilityManager;
 }
 protected override void RunBeforeAllTests()
 {
     availabilityManager = new AvailabilityManager();
 }
Exemple #4
0
 /// <summary>
 /// BookingManager Constructor
 /// </summary>
 /// <param name="existingAvailabilityManager">An override for the default 'spawn new manager' behaviour</param>
 /// <param name="existingOrderManager">An override for the default 'spawn new Order Manager' behaviour</param>
 public BookingManager(IAvailabilityManager existingAvailabilityManager = null, IOrderManager existingOrderManager = null)
 {
     availabilityManager = existingAvailabilityManager ?? new AvailabilityManager(existingBookingManager: this);
     orderManager = existingOrderManager ?? new OrderManager(existingBookingManager: this, existingAvailabilityManager: availabilityManager);
     emailManager = new EmailManager();
 }
Exemple #5
0
 /// <summary>
 /// Constructor for the Order Manager
 /// </summary>
 /// <param name="existingBookingManager">An override for the default 'Spawn new Booking Manager' behaviour</param>
 public OrderManager(IBookingManager existingBookingManager = null, IAvailabilityManager existingAvailabilityManager = null)
 {
     bookingManager = existingBookingManager ?? new BookingManager(existingOrderManager: this, existingAvailabilityManager: availabilityManager);
     availabilityManager = existingAvailabilityManager ?? new AvailabilityManager(existingBookingManager: bookingManager);
 }