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