Josh Creek
a1db5136c6
feat(*): Remove unnecessary using statements
2021-08-30 13:04:28 +01:00
Josh Creek
98d03ae2f2
feat(*): Clean up warnings in SftpRepository
2021-08-30 13:03:54 +01:00
Josh Creek
952a9a9a8b
refactor(*): Rename FileName to Filename in interface
2021-08-30 13:02:23 +01:00
Josh Creek
997c71097a
refactor(*): Rename FileName to Filename across the whole solution for consistency
2021-08-30 12:49:43 +01:00
Josh Creek
9c48ae9452
feat(*): Add SftpRepository config for testing
2021-08-30 12:46:56 +01:00
Josh Creek
01719ec05c
feat(*): Add appsettings.json for testing
2021-08-30 12:46:43 +01:00
Josh Creek
62665fe492
feat(*): Add SftpRepositoryShould tests
2021-08-30 12:46:01 +01:00
Josh Creek
ebccd4aeca
feat(*): Add GenerateStreamFromString helper method for testing
2021-08-30 12:45:17 +01:00
Josh Creek
82fd25881b
fix(*): Initialise content with a new stream so it can be written to
2021-08-30 12:44:07 +01:00
Josh Creek
4232dd9a03
fix(*): Add missing throw to ensure exceptions get passed up the stack
2021-08-30 12:43:44 +01:00
Josh Creek
26a953d59c
feat(*): Add initialiser for SftpRepository to use an IConfiguration
2021-08-30 12:43:26 +01:00
Josh Creek
0e09233b1d
feat(*): Set Factory to utilise IConfiguration objects as parameters
2021-08-30 12:42:29 +01:00
Josh Creek
1813599e82
fix(*): Make Factory static to enable not having to instantiate it everywhere
2021-08-30 11:06:11 +01:00
Josh Creek
5138cca9b0
feat(*): Add the SftpRepository to the factory
2021-08-30 00:31:48 +01:00
Josh Creek
bc4decc617
feat(*): Add an initial barebones implementation of the SftpRepository
2021-08-30 00:31:36 +01:00
Josh Creek
ca490f72be
refactor(*): Modify IFIleRepository UpdateFileAsync to use a RepoFile model instead of a filename
2021-08-30 00:31:04 +01:00
Josh Creek
8eafe54fc2
refactor(*): Remove the id from RepoFile as the filename can be used instead as a UID
2021-08-30 00:06:33 +01:00
Josh Creek
314cec2ac2
refactor(*): Split repository name into a separate variable to make it more readable
2021-08-29 23:41:36 +01:00
Josh Creek
85c8769631
refactor(*): Refactor GetFileRepository to simplify the factory class and handle bad repository types
...
Thanks to the enum it shouldn't be possible for there to be a bad repository type passed as an argument to this method, but this will handle it just in case.
2021-08-29 23:40:04 +01:00
Josh Creek
7039886034
feat(*): Add GetFileRepository method
...
Not currently working as I need to add at least one repository implementation and a method to select it based on the enum value.
2021-08-29 23:32:13 +01:00
Josh Creek
8b1618eec7
feat(*): Add RepositoryType enum
2021-08-29 23:30:20 +01:00
Josh Creek
57acb1d652
feat(*): Add base Factory class
2021-08-29 23:29:57 +01:00
Josh Creek
ce31802a94
feat(*): Add base unit test project to solution
2021-08-29 23:20:12 +01:00
Josh Creek
11450dedcd
feat(*): Add IFileRepository
2021-08-29 23:16:07 +01:00
Josh Creek
9167618436
fix(*): Rename File model to RepoFile to prevent clashes with the static system File object
2021-08-29 23:11:31 +01:00
Josh Creek
22a71271e4
feat(*): Add documentation to File model to remove warnings
2021-08-29 23:05:36 +01:00
Josh Creek
f0edd7719c
feat(*): Add global suppression for SA1200
2021-08-29 23:05:07 +01:00
Josh Creek
81c42aef4d
fix(*): Fix broken stylecop and globalsuppressions rules
2021-08-29 23:04:47 +01:00
Josh Creek
2739a6e642
feat(*): Add stylecop for better linting
2021-08-29 22:48:51 +01:00
Josh Creek
803d0ec1f5
feat(*): Add File model
2021-08-29 22:31:17 +01:00
Josh Creek
7ba33b2ecf
feat(*): Add base project
2021-08-29 22:24:52 +01:00
Josh Creek
6e5c07e5be
feat(*): Add gitignore for dotnet projects
2021-08-29 22:21:07 +01:00
Josh Creek
8e9e39d7b0
Initial commit
2021-08-29 22:19:47 +01:00