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); }
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); }
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); }