예제 #1
0
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="VKPushNotificationsService"/>.
 /// </summary>
 /// <param name="settingsService">Сервис настроек приложения.</param>
 /// <param name="vkService">Сервис для работы с ВКонтакте.</param>
 public VKPushNotificationsService(ISettingsService settingsService, IVKService vkService,
                                   IDeviceInformationService deviceInformationService)
 {
     this.settingsService          = settingsService;
     this.vkService                = vkService;
     this.deviceInformationService = deviceInformationService;
 }
 public PeriodicJobUpdateService(IJobUpdateService jobUpdateService, IScheduler scheduler, 
     IScheduledActionServiceFacade scheduledActionService, IDeviceInformationService deviceInformationService)
 {
     this.jobUpdateService = jobUpdateService;
     this.scheduler = scheduler;
     this.scheduledActionService = scheduledActionService;
     this.deviceInformationService = deviceInformationService;
 }
 public EditColourSettingsViewModel(INavigationService navigationService, ISchedulerAccessor schedulerAccessor, 
     IApplicationSettings applicationSettings, IApplicationResourceFacade applicationResources,
     ISettingsApplier settingsApplier, IDeviceInformationService deviceInformationService)
 {
     this.navigationService = navigationService;
     this.schedulerAccessor = schedulerAccessor;
     this.applicationSettings = applicationSettings;
     this.applicationResources = applicationResources;
     this.settingsApplier = settingsApplier;
     this.deviceInformationService = deviceInformationService;
 }
예제 #4
0
 public App(
     IKeyStorageContainer keyStorageContainer,
     IStorageContainer storageContainer,
     IPreferencesManager preferencesManager,
     IDeviceInformationService deviceInformationService)
 {
     Mvx.RegisterSingleton(keyStorageContainer);
     Mvx.RegisterSingleton(storageContainer);
     Mvx.RegisterSingleton(preferencesManager);
     Mvx.RegisterSingleton(deviceInformationService);
 }
 public OnboardingService(
     ISecureStorageService secureStorageService,
     IRegistrationService registrationService,
     IApiKeyService apiKeyService,
     IDeviceInformationService deviceInformationService)
 {
     _secureStorageService     = secureStorageService;
     _registrationService      = registrationService;
     _apiKeyService            = apiKeyService;
     _deviceInformationService = deviceInformationService;
 }
예제 #6
0
 public AgentSocket(ConfigService configService,
                    Uninstaller uninstaller,
                    ScriptExecutor scriptExecutor,
                    ChatClientService chatService,
                    IAppLauncher appLauncher,
                    IUpdater updater,
                    IDeviceInformationService deviceInfoService)
 {
     _configService     = configService;
     _uninstaller       = uninstaller;
     _scriptExecutor    = scriptExecutor;
     _appLauncher       = appLauncher;
     _chatService       = chatService;
     _updater           = updater;
     _deviceInfoService = deviceInfoService;
 }
예제 #7
0
 public SecureChannelService(
     ICryptoService cryptoService,
     IStorageContainer storageContainer,
     IKeyStorageContainer keyStorageContainer,
     IDeviceInformationService deviceInformationService)
 {
     _storageContainer    = storageContainer;
     _keyStorageContainer = keyStorageContainer;
     _deviceId            = deviceInformationService.DeviceId;
     _cryptoService       = cryptoService;
     _httpClient          = new HttpClient
     {
         BaseAddress = new Uri(_baseUrl),
         Timeout     = TimeSpan.FromSeconds(20)
     };
 }
        public void TestInitialize()
        {
            const string allMyBricksOnboardingUrl = "http://localhost/";

            _registrationService = new RegistrationService(allMyBricksOnboardingUrl);
            _apiKeyService       = new ApiKeyService(allMyBricksOnboardingUrl);

            var deviceInfo = Substitute.For <IDeviceInfo>();

            deviceInfo.Manufacturer.Returns("BRAND");
            deviceInfo.Model.Returns("MODEL");
            deviceInfo.VersionString.Returns("VERSION YEAR");
            deviceInfo.Platform.Returns(DevicePlatform.UWP);
            deviceInfo.Idiom.Returns(DeviceIdiom.Desktop);

            _deviceInformationService = new DeviceInformationService(deviceInfo);
        }
예제 #9
0
 public void TestInit()
 {
     _testData    = new TestData();
     _dataService = IoCActivator.ServiceProvider.GetRequiredService <IDataService>();
     _deviceInfo  = IoCActivator.ServiceProvider.GetRequiredService <IDeviceInformationService>();
 }
 public EditSettingsViewModel(IApplicationSettings applicationSettings, IDeviceInformationService deviceInformationService)
 {
     this.applicationSettings = applicationSettings;
     this.deviceInformationService = deviceInformationService;
 }
예제 #11
0
 public DeviceViewModel(IDeviceInformationService deviceInfoService)
 {
     _deviceInfoService = deviceInfoService;
 }