public void CopyFolderToAnotherLocationCopiesAllFiles() { var originalFileCount = GetFileCountFromDirectory(_sourceDirectory); Sut.CopyDirectory(_sourceDirectory, _destinationDirectory); Assert.That(AssertFilesCountIsExpected(_destinationDirectory, originalFileCount)); }
public async Task <ActionResponse> ExecuteAsync(CreateSolutionModel model, Action <CreateSolutionModel, string> notifyAction) { // Clean working directory _directoryService.DeleteDirectory(_configuration.WorkingDirectory); var directory = _directoryService.CreateDirectory(_configuration.DownloadDirectory); // Clone template repository await _cloneSolutionTemplateCommand.ExecuteAsync(model, notifyAction); _directoryService.CopyDirectory(directory.FullName, _configuration.WorkingDirectory); await _updateSolutionFileNamespacesCommand.ExecuteAsync(model, notifyAction); // download template and unzip into location return(await _cloneSolutionTemplateCommand.ExecuteAsync(model, notifyAction)); }
private void CopyFolder() { _directoryService.CopyDirectory(_configuration.DownloadDirectory, _configuration.WorkingDirectory); }