public BaseTest()
        {
            ActivateDependencyInjection.Activate();

            HotelService   = ServiceLocator.Current.GetInstance <IHotelService>();
            HotelsService  = ServiceLocator.Current.GetInstance <IHotelsService>();
            SystemService  = ServiceLocator.Current.GetInstance <ISystemService>();
            BookingService = ServiceLocator.Current.GetInstance <IBookingService>();
            MockRepository = ServiceLocator.Current.GetInstance <IMockRepository>();
            Repository     = ServiceLocator.Current.GetInstance <IPrevioRepository>();
        }
 public TestFilterSearchBonuses()
 {
     ActivateDependencyInjection.Activate();
     Repository   = ServiceLocator.Current.GetInstance <IPrevioRepository>();
     HotelService = ServiceLocator.Current.GetInstance <IHotelsService>();
 }
Example #3
0
 public TestDeserializationLocalXml()
 {
     ActivateDependencyInjection.Activate();
     Repository = ServiceLocator.Current.GetInstance <IMockRepository>();
 }
        public TestPrevioApiXmlProvider()
        {
            ActivateDependencyInjection.Activate();

            Provider = ServiceLocator.Current.GetInstance <IPrevioApiXmlProvider>();
        }
Example #5
0
 public TestHotelsService()
 {
     ActivateDependencyInjection.Activate();
     Service = ServiceLocator.Current.GetInstance <IHotelsService>();
 }