Esempio n. 1
0
        internal AppDataStore(IAppNameProvider appNameProvider, IDirectoryManipulator directoryManipulator, IFileManipulator fileManipulator)
        {
            _appPath         = Path.Combine(directoryManipulator.AppDataPath, appNameProvider.AppName);
            _fileManipulator = fileManipulator;

            directoryManipulator.CreateDirectory(_appPath);
        }
 public DirectoryObserver(
     IFileReader fileReader,
     IJsonConverter <ConfigInfo> jsonConverter,
     IFileManipulator fileManipulator)
 {
     this.fileReader      = fileReader;
     this.jsonConverter   = jsonConverter;
     this.fileManipulator = fileManipulator;
 }
        public FileWatcher(string path, string filter, NotifyFilters notifyFilter, IFileManipulator manipulator)
        {
            this.Path         = path;
            this.Filter       = filter;
            this.NotifyFilter = notifyFilter;

            manipulator.CreateFolder(this.Path);

            this._watcher = new FileSystemWatcher(this.Path, this.Filter)
            {
                NotifyFilter = this.NotifyFilter
            };
        }
Esempio n. 4
0
        public FileHandler(string mailToSendFP, string invalidMailFP, IFileWatcher watcher, IFileManipulator manipulator, IFileSender sender, ILog logger)
        {
            this.MailToSendFP  = mailToSendFP;
            this.InvalidMailFP = invalidMailFP;

            this._fileWatcher = watcher;
            this._manipulator = manipulator;
            this._fileSender  = sender;
            this._logger      = logger;

            this._manipulator.CreateFolder(this.MailToSendFP);
            this._manipulator.CreateFolder(this.InvalidMailFP);
        }
Esempio n. 5
0
 public MetaGeneratorProjectPluginGenerator(
     IConsoleWriter consoleWriter,
     IFileGenerator fileGenerator,
     IFileManipulator fileManipulator,
     IUserInputProvider userInputProvider,
     IVariableProvider variableProvider)
 {
     _consoleWriter     = consoleWriter;
     _fileGenerator     = fileGenerator;
     _fileManipulator   = fileManipulator;
     _userInputProvider = userInputProvider;
     _variableProvider  = variableProvider;
 }
 public ManagedWrapperProjectsPluginGenerator(
     IConsoleWriter consoleWriter,
     IFileGenerator fileGenerator,
     IFileManipulator fileManipulator,
     IUserInputProvider userInputProvider,
     IVariableProvider variableProvider,
     IPathProvider pathProvider,
     ITools tools)
 {
     _consoleWriter     = consoleWriter;
     _fileGenerator     = fileGenerator;
     _fileManipulator   = fileManipulator;
     _userInputProvider = userInputProvider;
     _variableProvider  = variableProvider;
     _pathProvider      = pathProvider;
     _tools             = tools;
 }
Esempio n. 7
0
 public ProjectGenerator(IProjectDirectoryProvider projectDirectoryProvider,
                         IDirectoryManipulator directoryManipulator,
                         IFileManipulator fileManipulator,
                         ISolutionTemplateProvider solutionTemplateProvider,
                         IGitClient gitClient,
                         IGitApiClient gitApiClient,
                         ILogger logger,
                         string projectType
                         )
 {
     _directoryManipulator     = directoryManipulator;
     _fileManipulator          = fileManipulator;
     _solutionTemplateProvider = solutionTemplateProvider;
     _gitClient         = gitClient;
     _gitApiClient      = gitApiClient;
     _logger            = logger;
     _projectType       = projectType;
     _solutionDirectory = projectDirectoryProvider.SolutionDirectory;
 }
Esempio n. 8
0
 public NativeProjectsPluginGenerator(
     IConsoleWriter consoleWriter,
     IFileGenerator fileGenerator,
     IFileManipulator fileManipulator,
     IUserInputProvider userInputProvider,
     IVariableProvider variableProvider,
     IProjectInformation projectInformation,
     ITfsPaths tfsPaths,
     ITools tools)
 {
     _consoleWriter      = consoleWriter;
     _fileGenerator      = fileGenerator;
     _fileManipulator    = fileManipulator;
     _userInputProvider  = userInputProvider;
     _variableProvider   = variableProvider;
     _projectInformation = projectInformation;
     _tfsPaths           = tfsPaths;
     _tools = tools;
 }
Esempio n. 9
0
            public FileStream(string fullFileName, FileMode fileMode, FileAccess fileAccess, FileShare fileShare, bool incrementFileName = true)
            {
                if (incrementFileName)
                {
                    FileName = FileNameIncrementor(fullFileName);
                }
                else
                {
                    FileName = fullFileName;
                }

                if (this.FileManipulator == null)
                {
                    this.FileManipulator = FileManipulatorFactory.GetManipulator(this.LocationType);
                }

                this.Stream = FileManipulator.Open(fullFileName);

                FileType = Path.GetExtension(fullFileName);
            }
Esempio n. 10
0
 public iOSDatabaseBuilder(IApplicationPathBuilder pathBuilder, IFileManipulator fileManipulator, ILogger logger) : base(pathBuilder, fileManipulator, logger)
 {
 }
Esempio n. 11
0
 public FileStream(IFileManipulator fileManipulator, string fullFileName) : this(fullFileName)
 {
     this.FileManipulator = fileManipulator;
 }