public void SetUp() { _publish = new PublishFiles(ClientFactory, RequestTimoutMilliseconds, BufferSizeKilobytes, true, LoggerMock) { SourceFiles = EnumerateFiles(SourceFolder), Bucket = Bucket, DestinationFolder = DestinationFolder }; }
public void TearDown() { var removeBucket = new DeleteBucket(ClientFactory, RequestTimoutMilliseconds, BufferSizeKilobytes, LoggerMock) { Bucket = Bucket }; Assert.IsTrue(removeBucket.Execute(), "Could not remove test bucket!"); if (_publish != null) { _publish.Dispose(); } _publish = null; }
public void SetUp() { var publish = new PublishFiles(ClientFactory, RequestTimoutMilliseconds, BufferSizeKilobytes, true, LoggerMock) { SourceFiles = new ITaskItem[] { new TaskItem(TestFilePath) }, Bucket = Bucket, DestinationFolder = DestinationFolder }; Assert.IsTrue(publish.Execute()); _delete = new DeleteChildren(ClientFactory, RequestTimoutMilliseconds, BufferSizeKilobytes, LoggerMock) { Bucket = Bucket, Children = new[] { string.Format("{0}/{1}", DestinationFolder, TestFileName) } }; }
public void SetUp() { var publish = new PublishFiles(ClientFactory, RequestTimoutMilliseconds, true, LoggerMock) { SourceFiles = new[] {TestFilePath}, Bucket = Bucket, DestinationFolder = DestinationFolder }; Assert.IsTrue(publish.Execute()); _delete = new DeleteChildren(ClientFactory, RequestTimoutMilliseconds, LoggerMock) { Bucket = Bucket, Children = new[] { string.Format("{0}/{1}", DestinationFolder, TestFileName) } }; }