public RestoreServiceTest(IAuthenticatorRepository authenticatorRepository,
                           IAuthenticatorCategoryRepository authenticatorCategoryRepository, ICategoryRepository categoryRepository,
                           ICustomIconRepository customIconRepository, IRestoreService restoreService, Backup backup)
     : base(authenticatorRepository, categoryRepository, authenticatorCategoryRepository, customIconRepository)
 {
     _restoreService = restoreService;
     _backup         = backup;
 }
Пример #2
0
 public DataTest(IAuthenticatorRepository authenticatorRepository,
                 ICategoryRepository categoryRepository,
                 IAuthenticatorCategoryRepository authenticatorCategoryRepository,
                 ICustomIconRepository customIconRepository)
 {
     AuthenticatorRepository         = authenticatorRepository;
     AuthenticatorCategoryRepository = authenticatorCategoryRepository;
     CategoryRepository   = categoryRepository;
     CustomIconRepository = customIconRepository;
 }
Пример #3
0
 public BackupService(IAuthenticatorRepository authenticatorRepository, ICategoryRepository categoryRepository,
                      IAuthenticatorCategoryRepository authenticatorCategoryRepository,
                      ICustomIconRepository customIconRepository, IAssetProvider assetProvider)
 {
     _authenticatorRepository         = authenticatorRepository;
     _categoryRepository              = categoryRepository;
     _authenticatorCategoryRepository = authenticatorCategoryRepository;
     _customIconRepository            = customIconRepository;
     _assetProvider = assetProvider;
 }
 public AuthenticatorService(IAuthenticatorRepository authenticatorRepository,
                             IAuthenticatorCategoryRepository authenticatorCategoryRepository,
                             IIconResolver iconResolver, ICustomIconService customIconService,
                             ICustomIconRepository customIconRepository)
 {
     _authenticatorRepository         = authenticatorRepository;
     _authenticatorCategoryRepository = authenticatorCategoryRepository;
     _iconResolver         = iconResolver;
     _customIconService    = customIconService;
     _customIconRepository = customIconRepository;
 }
Пример #5
0
        public WearQueryService()
        {
            _shouldCloseDatabase             = false;
            _database                        = Dependencies.Resolve <Database>();
            _authenticatorView               = Dependencies.Resolve <IAuthenticatorView>();
            _authenticatorCategoryRepository = Dependencies.Resolve <IAuthenticatorCategoryRepository>();
            _categoryRepository              = Dependencies.Resolve <ICategoryRepository>();
            _customIconRepository            = Dependencies.Resolve <ICustomIconRepository>();

            _initTask = new Lazy <Task>(async delegate
            {
                if (!_database.IsOpen)
                {
                    var password = await SecureStorageWrapper.GetDatabasePassword();
                    await _database.Open(password);
                    _shouldCloseDatabase = true;
                }
            });
        }
Пример #6
0
        public AutoBackupWorker(Context context, WorkerParameters workerParams) : base(context, workerParams)
        {
            _context             = context;
            _preferences         = new PreferenceWrapper(context);
            _shouldCloseDatabase = false;

            _database                        = Dependencies.Resolve <Database>();
            _restoreService                  = Dependencies.Resolve <IRestoreService>();
            _authenticatorRepository         = Dependencies.Resolve <IAuthenticatorRepository>();
            _categoryRepository              = Dependencies.Resolve <ICategoryRepository>();
            _authenticatorCategoryRepository = Dependencies.Resolve <IAuthenticatorCategoryRepository>();
            _customIconRepository            = Dependencies.Resolve <ICustomIconRepository>();

            _initTask = new Lazy <Task>(async delegate
            {
                if (!_database.IsOpen)
                {
                    var password = await SecureStorageWrapper.GetDatabasePassword();
                    await _database.Open(password);
                    _shouldCloseDatabase = true;
                }
            });
        }
Пример #7
0
 public CategoryService(ICategoryRepository categoryRepository,
                        IAuthenticatorCategoryRepository authenticatorCategoryRepository)
 {
     _categoryRepository = categoryRepository;
     _authenticatorCategoryRepository = authenticatorCategoryRepository;
 }
Пример #8
0
 public AuthenticatorCategoryService(IAuthenticatorCategoryRepository authenticatorCategoryRepository)
 {
     _authenticatorCategoryRepository = authenticatorCategoryRepository;
 }