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(); }
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(); }
public AbortTests() { DependencyInjectionConfig.Init(); ApiStubHelper.StartServer(); }
public QuestionnaireCountriesViewModelTests() { DependencyInjectionConfig.Init(); _viewModel = new QuestionnaireCountriesViewModel(); ApiStubHelper.StartServer(); }