Inheritance: ILocalStorageProvider
 public async Task TargetFolderIsCreated()
 {
     var provider = new FileSystemStorageProvider(new FileSystemAccess("files"));
     await provider.AddAsync(new MobileServiceFile("test.txt", "table", "1"), new MemoryStream());
     Assert.True(Directory.Exists("files"));
     Directory.Delete("files", true);
 }
 public async Task AbsoluteTargetFolderIsCreated()
 {
     var path = Path.Combine(Environment.CurrentDirectory, "files");
     var provider = new FileSystemStorageProvider(new FileSystemAccess(path));
     await provider.AddAsync(new MobileServiceFile("test.txt", "table", "1"), new MemoryStream());
     Assert.True(Directory.Exists(path));
     Directory.Delete(path, true);
 }
        public async Task BasicScenario()
        {
            var provider = new FileSystemStorageProvider(new FileSystemAccess());
            await provider.AddAsync(file, GetStream("this is a test"));
            Assert.True(File.Exists("table-1-test.txt"));

            using (var contentStream = await provider.GetAsync(file))
            {
                Assert.Equal("this is a test", new StreamReader(contentStream).ReadToEnd());
            }

            await provider.DeleteAsync(file);
            Assert.False(File.Exists("table-1-test.txt"));
        }