public void Init() { // MAKE SURE before you run this test, you MUST change the API key to yours; otherwise the test fails. this._settings = ConverterSettings.CreateInstance(); this._formats = new Formats(); this._wrapper = new ConverterWrapper(this._settings); this._input = new InputParameters() { InputFormat = this._formats.Document.Md, InputMethod = InputMethod.Download, Filepath = "https://raw.githubusercontent.com/aliencube/CloudConvert.NET/dev/README.md", Filename = "README.md", }; this._output = new OutputParameters() { DownloadMethod = DownloadMethod.False, OutputStorage = OutputStorage.OneDrive, }; this._conversion = new ConversionParameters() { OutputFormat = this._formats.Document.Docx, ConverterOptions = new MarkdownConverterOptions() { InputMarkdownSyntax = MarkdownSyntaxType.Auto }, }; }
public void Init() { // MAKE SURE before you run this test, you MUST change the API key to yours; otherwise the test fails. this._settings = ConverterSettings.CreateInstance(); this._formats = new Formats(); this._wrapper = new ConverterWrapper(this._settings); this._input = new InputParameters() { InputFormat = this._formats.Website.Website, InputMethod = InputMethod.Url, Filepath = "http://www.google.com" }; this._output = new OutputParameters() { DownloadMethod = DownloadMethod.False, OutputStorage = OutputStorage.None, Wait = true }; this._conversion = new ConversionParameters() { OutputFormat = this._formats.Document.Pdf, ConverterOptions = null }; }
public void Init() { this._settings = ConverterSettings.CreateInstance(); }