public MessageUtilsTests()
        {
            DependencyInjectionConfig.Init();
            var secureStorageService = ServiceLocator.Current.GetInstance <SecureStorageService>();

            secureStorageService.SetSecureStorageInstance(new SecureStorageMock());
            ApiStubHelper.StartServer();
        }
 public PushKeysTests()
 {
     DependencyInjectionConfig.Init();
     ApiStubHelper.StartServer();
     JsonConvert.DefaultSettings = () => new JsonSerializerSettings
     {
         Converters = new JsonConverter[] { new JsonMockConverter() }
     };
     _developerToolsService          = ServiceLocator.Current.GetInstance <IDeveloperToolsService>();
     _exposureNotificationWebService = new ExposureNotificationWebService();
 }
Esempio n. 3
0
        public WebServiceTests()
        {
            DependencyInjectionConfig.Init();
            var secureStorageService = ServiceLocator.Current.GetInstance <SecureStorageService>();

            secureStorageService.SetSecureStorageInstance(new SecureStorageMock());

            var container        = ServiceLocator.Current.GetInstance <IUnityContainer>();
            var mockConnectivity = new Mock <IConnectivity>();

            mockConnectivity.Setup(x => x.NetworkAccess).Returns(Xamarin.Essentials.NetworkAccess.Internet);
            container.RegisterInstance(mockConnectivity.Object);

            ApiStubHelper.StartServer();
        }
Esempio n. 4
0
 public AbortTests()
 {
     DependencyInjectionConfig.Init();
     ApiStubHelper.StartServer();
 }
Esempio n. 5
0
 public QuestionnaireCountriesViewModelTests()
 {
     DependencyInjectionConfig.Init();
     _viewModel = new QuestionnaireCountriesViewModel();
     ApiStubHelper.StartServer();
 }