public CreatePrinterCommandHandler(
     IDataStorageService <Printer> storageService,
     IMapper mapper)
 {
     _storageService = storageService;
     _mapper         = mapper;
 }
Пример #2
0
 public AccountStorageService(
     IDataStorageService dataStorageManager,
     IMapper mapper)
 {
     _dataStorageManager = dataStorageManager;
     this.mapper         = mapper;
 }
Пример #3
0
 public GetAllPrintersQueryHandler(
     IDataStorageService <Printer> storageService,
     IMapper mapper)
 {
     _storageService = storageService;
     _mapper         = mapper;
 }
 static HikesController()
 {
     StorageClient = ServiceFactory.GetStorageClient();
     NotifyUserStorageClient = StorageClient.GetStorage(StorageType.NotifyUser);
     NotifyEmergencyStorageClient = StorageClient.GetStorage(StorageType.NotifyEmergency);
     UserHikeStorageClient = StorageClient.GetStorage(StorageType.UserHikesData);
 }
Пример #5
0
        public BinderBase(IBindingContainer bindingContainer, IDataStorageService dataStorageService, IControlService controlService)
        {
            this.bindingContainer   = bindingContainer;
            this.dataStorageService = dataStorageService;
            this.controlService     = controlService;

            bindingContainer.Load += new EventHandler(bindingContainer_Load);
        }
Пример #6
0
        public NewsListViewModel(INavigation navigation)
        {
            _restService     = new RestService();
            _dstorageService = new DataStorageService();
            _navigation      = navigation;

            DataTransformation();
        }
 public DataManager(IDataStorageService dataStorageService,
                    ApplicationService applicationService,
                    ServicePrincipalService servicePrincipalService)
 {
     _dataStorageService      = dataStorageService;
     _applicationService      = applicationService;
     _servicePrincipalService = servicePrincipalService;
 }
Пример #8
0
        private void InitialiseLocalDatabase()
        {
            IDataStorageService dataStorage = container.GetInstance <IDataStorageService>();

            using (IDataBuilder modelBuilder = dataStorage.GetBuilder())
            {
                modelBuilder.BuildStorageAsync();
            }
        }
Пример #9
0
 public ExemplaryViewModel(
     IKeyValuesStorageSyncService keyValueStorage,
     IJsonStorageService jsonStorage,
     IDataStorageService relationStorage)
 {
     this.keyValueStorage = keyValueStorage;
     this.jsonStorage     = jsonStorage;
     this.relationStorage = relationStorage;
 }
        public void SetupForTest()
        {
            mockContainer      = MockRepository.GenerateMock <IServiceProviderBindingContainer>();
            dataStorageService = new ViewStateStorageService(new StateBag());
            controlService     = MockRepository.GenerateMock <IControlService>();

            //object under test
            binder = new ViewStateBinder(mockContainer, dataStorageService, controlService);
        }
 public ContractNotificationService(IESIService esiService, IMapper mapper,
                                    IDiscordService discordService, ISlackService slackService, IDataStorageService dataStorageService)
 {
     _esiService         = esiService;
     _mapper             = mapper;
     _slackService       = slackService;
     _discordService     = discordService;
     _dataStorageService = dataStorageService;
 }
Пример #12
0
 public SystemStateService(
     IDateTimeService dateTimeService,
     ISerialPortDiscoveryService serialPortDiscoveryService,
     IDataStorageService <Configuration> configurationDataStorageService)
 {
     _dateTimeService                 = dateTimeService;
     _serialPortDiscoveryService      = serialPortDiscoveryService;
     _configurationDataStorageService = configurationDataStorageService;
 }
Пример #13
0
 /// <summary>
 /// Constructs a new DataSyncService.
 /// </summary>
 public DataSyncService(
     ILogger <DataSyncService> logger,
     IDataStorageService dataStorageService,
     IConstituentsService constituentService)
 {
     Logger = logger;
     _dataStorageService = dataStorageService;
     _constituentService = constituentService;
 }
Пример #14
0
 public NavigationService(IAccessTokenManager accessTokenManager,
                          IPageService pageService,
                          IApplicationContext applicationContext,
                          IDataStorageService dataStorageService)
 {
     _accessTokenManager = accessTokenManager;
     _pageService        = pageService;
     _applicationContext = applicationContext;
     _dataStorageService = dataStorageService;
 }
 public ConstituentsService(
     IOptions <AppSettings> appSettings,
     IDataStorageService dataStorageService,
     IAuthenticationService authService)
 {
     _appSettings        = appSettings;
     _dataStorageService = dataStorageService;
     _authService        = authService;
     _apiBaseUri         = new Uri(new Uri(_appSettings.Value.SkyApiBaseUri), "constituent/v1/");
 }
Пример #16
0
 /// <summary>
 /// Constructs an instance of SyncApp.
 /// </summary>
 public SyncApp(
     ILogger <SyncApp> logger,
     IDataSyncService dataSyncService,
     IDataStorageService dataStorageService)
 {
     Logger                  = logger;
     _dataSyncService        = dataSyncService;
     _dataStorageService     = dataStorageService;
     _commandLineApplication = new CommandLineApplication(throwOnUnexpectedArg: false);
 }
        public UpdatePrinterCommandHandler(
            IDataStorageService <Printer> storageService,
            IMapper mapper,
            IStringLocalizerFactory stringLocalizerFactory)
        {
            _storageService = storageService;
            _mapper         = mapper;
            var assemblyName = new AssemblyName(this.GetType().Assembly.FullName);

            _stringLocalizer = stringLocalizerFactory.Create("Printly", assemblyName.Name);
        }
Пример #18
0
        public void SetupForTest()
        {
            mockContainer      = MockRepository.GenerateMock <IServiceProviderBindingContainer>();
            dataStorageService = MockRepository.GenerateMock <IDataStorageService>();
            controlService     = MockRepository.GenerateMock <IControlService>();
            viewModel          = new SimpleViewModel();

            //object under test
            binder = new ViewStateBinder(mockContainer, dataStorageService, controlService);

            mockContainer.Expect(mc => mc.IsPostBack).IgnoreArguments().Return(true);
            mockContainer.Expect(mc => mc.DataContext).IgnoreArguments().Return(viewModel);
        }
Пример #19
0
 public LoginViewModel(
     IAccountAppService accountAppService,
     IApplicationContext applicationContext,
     IAccountService accountService,
     IDataStorageService dataStorageService)
 {
     _accountAppService  = accountAppService;
     _applicationContext = applicationContext;
     _accountService     = accountService;
     _dataStorageService = dataStorageService;
     _languages          = new ObservableRangeCollection <LanguageInfo>(_applicationContext.Configuration.Localization.Languages);
     _selectedLanguage   = _languages.FirstOrDefault(l => l.Name == _applicationContext.CurrentLanguage.Name);
     _isInitialized      = false;
 }
Пример #20
0
 public AccountService(
     IApplicationContext applicationContext,
     ISessionAppService sessionAppService,
     IAccessTokenManager accessTokenManager,
     INavigationService navigationService,
     AbpAuthenticateModel abpAuthenticateModel,
     IDataStorageService dataStorageService)
 {
     _applicationContext  = applicationContext;
     _sessionAppService   = sessionAppService;
     _accessTokenManager  = accessTokenManager;
     _navigationService   = navigationService;
     _dataStorageService  = dataStorageService;
     AbpAuthenticateModel = abpAuthenticateModel;
 }
Пример #21
0
        /// <summary>
        /// Create a binder and explicitly specify the StateMode
        /// </summary>
        /// <param name="bindingContainer"></param>
        /// <param name="stateMode"></param>
        /// <returns></returns>
        public static BinderBase CreateBinder(IBindingContainer bindingContainer, StateMode stateMode)
        {
            BinderBase          binder             = null;
            IDataStorageService dataStorageService = GetDataStorageService(bindingContainer);

            if (stateMode == StateMode.Recreate)
            {
                binder = new StatelessBinder(bindingContainer, dataStorageService, new WebformsControlService());
            }
            else
            {
                binder = new ViewStateBinder(bindingContainer, new ViewStateStorageService(bindingContainer.GetStateBag()), new WebformsControlService());
            }

            return(binder);
        }
Пример #22
0
        private static IDataStorageService GetDataStorageService(IBindingContainer bindingContainer)
        {
            IDataStorageService      dataStorageService = null;
            IBindingServicesProvider serviceProvider    = bindingContainer as IBindingServicesProvider;

            if (serviceProvider != null)
            {
                dataStorageService = serviceProvider.DataStorageService;
            }
            else
            {
                dataStorageService = new ViewStateStorageService(bindingContainer.GetStateBag());
            }

            return(dataStorageService);
        }
Пример #23
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     IUserService ius,
     IStoredTokenService ists,
     IDataStorageService ids,
     ILogger <AccountController> logger)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _StoredToken   = ists;
     _DataStor      = ids;
     _emailSender   = emailSender;
     _UserService   = ius;
     _logger        = logger;
 }
Пример #24
0
        public void SetupForTest()
        {
            mockContainer      = MockRepository.GenerateMock <IServiceProviderBindingContainer>();
            dataStorageService = MockRepository.GenerateMock <IDataStorageService>();
            controlService     = MockRepository.GenerateMock <IControlService>();
            viewModel          = MockRepository.GenerateMock <ISimpleViewModel>();
            mockContainer.Expect(c => c.DataContext).IgnoreArguments().Return(viewModel);

            //object under test
            binder = new ViewStateBinder(mockContainer, dataStorageService, controlService);

            //setup mock services
            collection = new Binding.BindingCollection();
            dataStorageService.Expect(ds => ds.RetrieveOrCreate <Binding.BindingCollection>(null)).IgnoreArguments().Return(collection);

            //dataStorageService.Expect(ds => ds.Retrieve<object>(null)).IgnoreArguments()Return(viewModel);
        }
Пример #25
0
 public void TestFixtureSetup()
 {
     this.dataStorageService = new DataStorageService();
     this.dataStorageService.Clear();
 }
Пример #26
0
 public DataStorageController(IDataStorageService dataStorageService)
 {
     this.dataStorageService = dataStorageService;
 }
Пример #27
0
 public ViewStateBinder(IBindingContainer bindingContainer, IDataStorageService dataStorageService, IControlService controlService)
     : base(bindingContainer, dataStorageService, controlService)
 {
 }
 public DeletePrinterByIdCommandHandler(IDataStorageService <Printer> storageService)
 {
     _storageService = storageService;
 }
 public RepositoryService(IDataStorageService <List <Repository> > dataStorageService)
 {
     _dataStorageService = dataStorageService;
 }
Пример #30
0
 public ClientService(IDataStorageService <List <Client> > dataStorageService)
 {
     _dataStorageService = dataStorageService;
 }
Пример #31
0
 public DocumentSigService(ApplicationDbContext ctx, UserManager <ApplicationUser> um) : base(ctx, um)
 {
     _DataStor = new DataStorageService(ctx, um);
 }
 /// <summary>
 /// Constructs a new AuthenticationService.
 /// </summary>
 public AuthenticationService(IOptions <AppSettings> appSettings, IDataStorageService dataStorageService)
 {
     _appSettings        = appSettings;
     _dataStorageService = dataStorageService;
 }