public void AnotherHandShake() { chunkedBatch = client.Batch().Result; Assert.NotNull(normalBatch); Assert.NotNull(normalBatch.BatchId); }
public void UploadFileChuncked() { Blob blob = new Blob(IOHelper.CreateTempFile("This content is chunked. Seriously, really chunked!")).SetFilename("chunked.docx"); int chunkSize = (int)Math.Ceiling((double)blob.File.Length / 5); UploadJob job = new UploadJob(blob); job.SetChunked(true); job.SetChunkSize(chunkSize); chunkedBatch = chunkedBatch.Upload(job).Result; BatchFile info = chunkedBatch.Info(chunkedBatch.FileIndex).Result; Assert.NotNull(info); Assert.Equal(5, info.ChunkCount); Assert.Equal(5, info.UploadedChunkIds.Length); }
public void UploadAnotherFile() { Blob blob = new Blob(IOHelper.CreateTempFile("Yet more content.")).SetFilename("anoterFile.pdf"); UploadJob job = new UploadJob(blob).SetFileId(1); normalBatch = normalBatch.Upload(job).Result; Assert.NotNull(normalBatch); Assert.NotNull(normalBatch.FileIndex); Assert.NotNull(normalBatch.UploadType); Assert.NotNull(normalBatch.UploadSize); Assert.Equal(1, normalBatch.FileIndex); Assert.Equal("normal", normalBatch.UploadType); Assert.Equal(17, normalBatch.UploadSize); }
public void UploadFile() { Blob blob = new Blob(IOHelper.CreateTempFile("Just the content.")).SetFilename("myFile.doc"); UploadJob job = new UploadJob(blob); normalBatch = normalBatch.Upload(job).Result; Assert.NotNull(normalBatch); Assert.NotNull(normalBatch.FileIndex); Assert.NotNull(normalBatch.UploadType); Assert.NotNull(normalBatch.UploadSize); Assert.Equal(0, normalBatch.FileIndex); Assert.Equal("normal", normalBatch.UploadType); Assert.Equal(17, normalBatch.UploadSize); }
public void HandShake() { normalBatch = client.Batch().Result; Assert.NotNull(normalBatch); Assert.NotNull(normalBatch.BatchId); }