예제 #1
0
 public PathSegmentCountReaction(
     IDisplayNameHighlightEvaluator displayNameHighlightEvaluator,
     IFilePathService filePathService)
 {
     _displayNameHighlightEvaluator = displayNameHighlightEvaluator;
     _filePathService = filePathService;
 }
 public SingleInstrumentDownloadService(IExchange exchange, IBatchNumberService batchService,
                                        IFilePathService filePathService, IEventSavingService seriesAppendingService)
 {
     this.exchange               = exchange;
     this.batchService           = batchService;
     this.filePathService        = filePathService;
     this.seriesAppendingService = seriesAppendingService;
 }
예제 #3
0
 public UsersController(IJsonFileDataService jsonHelper, IGetUsersService getUsersHelper,
                        IIdService getIdHelper, IGetValidInputService validInputHelper, IFilePathService filePathService)
 {
     _jsonHelper       = jsonHelper;
     _getUsersHelper   = getUsersHelper;
     _getIdHelper      = getIdHelper;
     _validInputHelper = validInputHelper;
     _filePathService  = filePathService;
 }
예제 #4
0
        /// <summary>
        /// Конструктор модели представления главного окна
        /// </summary>
        /// <param name="dialogService"><сервис диалоговых окон/param>
        public MainViewModel(MainWindow mainWindow, IFilePathService filePathService, IMessageService messageService)
        {
            this.mainWindow = mainWindow;

            this.filePathService = filePathService;
            this.messageService  = messageService;

            SelectedDate = DateTime.Now;
        }
예제 #5
0
 public CommandService(
     IConsole console,
     IFileMirrorOptions options,
     IFilePathService filePathService)
 {
     this.Console         = console;
     this.Options         = options;
     this.FilePathService = filePathService;
 }
 public AttachmentHandlers(
     INavigationService navigationService,
     IDialogService dialogService,
     IFilePathService filePathService)
 {
     _navigationService = navigationService;
     _dialogService     = dialogService;
     _filePathService   = filePathService;
 }
예제 #7
0
 public AttachmentSynchronizationHandler(
     IFilePathService filePathService,
     ApiWebService apiWebService,
     INoteMeClientMapper mapper)
 {
     _filePathService = filePathService;
     _apiWebService   = apiWebService;
     _mapper          = mapper;
 }
예제 #8
0
        /// <summary>
        /// Constructor for FilIO class; calculate and initialize FilePath from provided file name
        /// </summary>
        /// <param name="fileName"></param>
        public FileIO(string fileName)
        {
            // build file path
            IFilePathService service = DependencyService.Get <IFilePathService>();

            FilePath = service.GetFilePath(fileName);

            // add serializer options to be able to use Dictionary data structure in JSON
            serializeOptions.Converters.Add(new DictionaryTKeyEnumTValueConverter());
        }
예제 #9
0
        public TextPaymentRepositoryFixture()
        {
            var fixture = new Fixture();

            _fakeFilePathService = A.Fake <IFilePathService>();
            _repository          = new TextPaymentRepository(_fakeFilePathService);
            _submitPaymentEntity = fixture.Create <PaymentDataEntity>();
            var tempPath = AppDomain.CurrentDomain.BaseDirectory + "PaymentData.txt";

            A.CallTo(() => _fakeFilePathService.GetPaymentDataFilePath()).Returns(tempPath);
        }
예제 #10
0
        public FileSelectViewModel(IFileSpecsService fileSpecService, IFilePathService filePathService, IRegionManager regionManager)
        {
            fss = fileSpecService;
            fps = filePathService;
            rm  = regionManager;

            GetSystemNameCommand = new DelegateCommand(AddFileSpecs);
            SystemNameRequest    = new InteractionRequest <INotification>();
            addFileSpecsCommand  = new DelegateCommand(AddFileSpecs);
            addFilePathCommand   = new DelegateCommand <object>(AddFilePath);
            fileSpecs            = fss.GetSpecs();
        }
 public DocumentMetadataFactory(
     IDocumentIconService documentIconService,
     IFilePathService filePathService,
     IPathCasingRestorer pathCasingRestorer,
     IProjectBrushService projectBrushService,
     ITimeProvider timeProvider,
     IUserPreferences userPreferences)
 {
     _documentIconService = documentIconService;
     _filePathService     = filePathService;
     _pathCasingRestorer  = pathCasingRestorer;
     _projectBrushService = projectBrushService;
     _timeProvider        = timeProvider;
     _userPreferences     = userPreferences;
 }
예제 #12
0
 public UploadController(IFilePathService filePathService, IItemService itemService, IHttpClientFactory clientFactory)
 {
     this._filePathService = filePathService;
     this._itemService     = itemService;
     this._clientFactory   = clientFactory;
 }
 public GeneratePasswordService(IFileOperationService fileOperationService, IFilePathService pathService)
 {
     _reader      = fileOperationService;
     _pathService = pathService;
     _random      = new Random((int)DateTime.UtcNow.Ticks);
 }
 public GeneratePasswordService()
 {
     _reader      = new FileOperationService();
     _pathService = new HttpFilePathService();
     _random      = new Random((int)DateTime.UtcNow.Ticks);
 }
예제 #15
0
 public GetUsersService(IJsonFileDataService jsonHelper, IFilePathService filePathService)
 {
     _jsonHelper      = jsonHelper;
     _filePathService = filePathService;
 }
예제 #16
0
 public TextPaymentRepository(IFilePathService filePathService)
 {
     _filePathService = filePathService;
 }
예제 #17
0
 public void Setup()
 {
     this.Instance = new FilePathService(null);
 }
예제 #18
0
 public PathSegmentCountReaction(IFilePathService filePathService)
 {
     _filePathService = filePathService;
 }