Esempio n. 1
0
        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>();
 }
Esempio n. 3
0
 public TestDeserializationLocalXml()
 {
     ActivateDependencyInjection.Activate();
     Repository = ServiceLocator.Current.GetInstance <IMockRepository>();
 }
        public TestPrevioApiXmlProvider()
        {
            ActivateDependencyInjection.Activate();

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