public CreatePrinterCommandHandler( IDataStorageService <Printer> storageService, IMapper mapper) { _storageService = storageService; _mapper = mapper; }
public AccountStorageService( IDataStorageService dataStorageManager, IMapper mapper) { _dataStorageManager = dataStorageManager; this.mapper = mapper; }
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); }
public BinderBase(IBindingContainer bindingContainer, IDataStorageService dataStorageService, IControlService controlService) { this.bindingContainer = bindingContainer; this.dataStorageService = dataStorageService; this.controlService = controlService; bindingContainer.Load += new EventHandler(bindingContainer_Load); }
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; }
private void InitialiseLocalDatabase() { IDataStorageService dataStorage = container.GetInstance <IDataStorageService>(); using (IDataBuilder modelBuilder = dataStorage.GetBuilder()) { modelBuilder.BuildStorageAsync(); } }
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; }
public SystemStateService( IDateTimeService dateTimeService, ISerialPortDiscoveryService serialPortDiscoveryService, IDataStorageService <Configuration> configurationDataStorageService) { _dateTimeService = dateTimeService; _serialPortDiscoveryService = serialPortDiscoveryService; _configurationDataStorageService = configurationDataStorageService; }
/// <summary> /// Constructs a new DataSyncService. /// </summary> public DataSyncService( ILogger <DataSyncService> logger, IDataStorageService dataStorageService, IConstituentsService constituentService) { Logger = logger; _dataStorageService = dataStorageService; _constituentService = constituentService; }
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/"); }
/// <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); }
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); }
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; }
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; }
/// <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); }
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); }
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; }
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); }
public void TestFixtureSetup() { this.dataStorageService = new DataStorageService(); this.dataStorageService.Clear(); }
public DataStorageController(IDataStorageService dataStorageService) { this.dataStorageService = dataStorageService; }
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; }
public ClientService(IDataStorageService <List <Client> > dataStorageService) { _dataStorageService = dataStorageService; }
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; }