public DirectoriesTest(StorageClientFixture fixture) : base(fixture) { _fileSystem.AddFile(@"c:\root-five-bytes.bin", new MockFileData(new byte[] { 0x01, 0x34, 0x56, 0xd2, 0xd2 })); _fileSystem.AddFile(@"c:\matrix\five-bytes.bin", new MockFileData(new byte[] { 0x02, 0x34, 0x56, 0xd2, 0xd2 })); _fileSystem.AddFile(@"c:\shawshank\five-bytes.bin", new MockFileData(new byte[] { 0x03, 0x34, 0x56, 0xd2, 0xd2 })); }
public LargeFilesTest(StorageClientFixture fixture) : base(fixture) { var content = Enumerable.Range(0, (int)(ClientOptions.MinimumCutoffSize * 1.1)).Select(i => (byte)i).ToArray(); _fileSystem.AddFile(_fileName, new MockFileData(content)); }
protected BaseFixture(StorageClientFixture fixture) { Services = fixture.Services; Config = fixture.Config; Logger = fixture.Logger; Options = fixture.Options; Storage = fixture.Storage; BucketId = fixture.bucketId; }
public BucketsTest(StorageClientFixture fixture) : base(fixture) { }
public KeysTest(StorageClientFixture fixture) : base(fixture) { }
public PartsTest(StorageClientFixture fixture) : base(fixture) { }
public ClientTest(StorageClientFixture fixture) : base(fixture) { Client = BackblazeClient.Initialize(Options.KeyId, Options.ApplicationKey); }