diff --git a/FileRepository/Models/RepoFile.cs b/FileRepository/Models/RepoFile.cs
index e54a22b..1214506 100644
--- a/FileRepository/Models/RepoFile.cs
+++ b/FileRepository/Models/RepoFile.cs
@@ -11,7 +11,7 @@ namespace FileRepository.Models
///
/// Gets or sets the actual file name of the file, this serves as the key field/unique identifier.
///
- public string FileName { get; set; }
+ public string Filename { get; set; }
///
/// Gets or sets the contents of the file, as a stream for easy manipulation.
@@ -26,14 +26,14 @@ namespace FileRepository.Models
///
/// Initialise a File model based on passed parameters.
///
- /// The filename of the file.
+ /// The filename of the file.
/// The content of the file.
/// Returns an initialised File object.
- public RepoFile GenerateFile(string fileName, Stream content)
+ public RepoFile GenerateFile(string filename, Stream content)
{
RepoFile newFile = new RepoFile()
{
- FileName = fileName,
+ Filename = filename,
Content = content,
Created = DateTime.Now,
};
diff --git a/FileRepository/Repositories/SftpRepository.cs b/FileRepository/Repositories/SftpRepository.cs
index 91da54e..a5c0795 100644
--- a/FileRepository/Repositories/SftpRepository.cs
+++ b/FileRepository/Repositories/SftpRepository.cs
@@ -31,7 +31,7 @@ namespace FileRepository.Repositories
bool canOverride = false;
UploadFile(file, canOverride);
- return file.FileName;
+ return file.Filename;
}
public async Task DeleteFileAsync(string fileName)
@@ -106,7 +106,7 @@ namespace FileRepository.Repositories
client.Connect();
client.ChangeDirectory(this.remoteDirectoryPath);
- client.UploadFile(file.Content, file.FileName, canOverride);
+ client.UploadFile(file.Content, file.Filename, canOverride);
//_logger.LogInformation($"Finished uploading file {file.FileName} to [{remoteDirectory}]");
}
diff --git a/UnitTests/SftpRepositoryShould.cs b/UnitTests/SftpRepositoryShould.cs
index 57b76d0..d488424 100644
--- a/UnitTests/SftpRepositoryShould.cs
+++ b/UnitTests/SftpRepositoryShould.cs
@@ -70,7 +70,7 @@ namespace UnitTests
RepoFile repoFile = await fileRepository.ReadFileAsync(filename);
Assert.NotNull(repoFile);
- Assert.NotNull(repoFile.FileName);
+ Assert.NotNull(repoFile.Filename);
Assert.NotNull(repoFile.Content);
Assert.NotNull(repoFile.Created);
}