mirror of
https://github.com/jcreek/Creek.FileRepository.git
synced 2026-07-13 02:43:43 +00:00
refactor(*): Replace GenerateFile method by just using the RepoFile constructor
This commit is contained in:
@@ -146,10 +146,10 @@ namespace UnitTests
|
||||
private async Task CreateTestFile(String filename)
|
||||
{
|
||||
IFileRepository fileRepository = Factory.GetFileRepository(repositoryType, config);
|
||||
RepoFile repoFile = new RepoFile();
|
||||
|
||||
Stream contentStream = StreamHelper.GenerateStreamFromString("a,b \n c,d");
|
||||
|
||||
repoFile = repoFile.GenerateFile(filename, contentStream);
|
||||
RepoFile repoFile = new RepoFile(filename, DateTime.Now, contentStream);
|
||||
|
||||
await fileRepository.CreateFileAsync(repoFile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user