コード例 #1
0
            public async Task GetFiles()
            {
                IFilesStorage filesStorage = new InMempryFilesStorage();

                var batchSize = await filesStorage.DeleteAllFiles();

                var files = await filesStorage.ListFiles();

                Assert.Empty(files);
                Assert.Equal(10, batchSize);
            }
コード例 #2
0
            public async Task DefaultMethodAvailability()
            {
                IFilesStorage.SetThresholds(5);
                IFilesStorage filesStorage = new InMempryFilesStorage();

                var batchSize = await filesStorage.DeleteAllFiles();

                var files = await filesStorage.ListFiles();

                Assert.Empty(files);
                Assert.Equal(5, batchSize);
            }
コード例 #3
0
            public async Task GetFilesParameterized()
            {
                IFilesStorage.SetThresholds(5);
                IFilesStorage filesStorage = new InMempryFilesStorage();

                var batchSize = await filesStorage.DeleteAllFiles();

                var files = await filesStorage.ListFiles();

                Assert.Empty(files);
                Assert.Equal(5, batchSize);
            }