示例#1
0
 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 }));
 }
示例#2
0
        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));
        }
示例#3
0
 protected BaseFixture(StorageClientFixture fixture)
 {
     Services = fixture.Services;
     Config   = fixture.Config;
     Logger   = fixture.Logger;
     Options  = fixture.Options;
     Storage  = fixture.Storage;
     BucketId = fixture.bucketId;
 }
示例#4
0
 public BucketsTest(StorageClientFixture fixture)
     : base(fixture)
 {
 }
示例#5
0
 public KeysTest(StorageClientFixture fixture)
     : base(fixture)
 {
 }
示例#6
0
 public PartsTest(StorageClientFixture fixture)
     : base(fixture)
 {
 }
示例#7
0
 public ClientTest(StorageClientFixture fixture)
     : base(fixture)
 {
     Client = BackblazeClient.Initialize(Options.KeyId, Options.ApplicationKey);
 }