Esempio n. 1
0
        public async Task VerifyValidate()
        {
            using (var target = new TestFolder())
                using (var cache = new LocalCache())
                    using (var extCache = new LocalCache())
                    {
                        var log  = new TestLogger();
                        var root = Path.Combine(target.RootDirectory.FullName, "testParent2/testParent1/testFeed");

                        var fileSystem = new PhysicalFileSystem(cache, UriUtility.CreateUri(root));

                        (await fileSystem.HasBucket(log, CancellationToken.None)).Should().BeFalse();
                        await fileSystem.CreateBucket(log, CancellationToken.None);

                        (await fileSystem.HasBucket(log, CancellationToken.None)).Should().BeTrue();
                    }
        }