48 Commits

Author SHA1 Message Date
Josh Creek dc7ec40cde feat(*): Update example appsettings.json 2021-09-02 21:22:36 +01:00
Josh Creek fcede90ae3 feat(*): Update package version 1.1.0 2021-09-02 21:20:12 +01:00
Josh Creek 2f152f2a3d refactor(*): Use a strongly-typed options object for reading configuration for the SftpRepository 2021-09-02 21:17:36 +01:00
Josh Creek 73be5a52f9 refactor(*): Use more human readable regex for determining if there are any invalid characters in a string 2021-09-02 20:36:14 +01:00
Josh Creek 7cf5abd3ec refactor(*): Make IsInvalidFileName an extension method 2021-09-02 20:35:47 +01:00
Josh Creek ac1183dc1e refactor(*): Simplify getting the repository name to make it more readable 2021-09-02 20:24:02 +01:00
Josh Creek 4bd84e8d8f feat(*): Use SystemTime.Now to enable testing created datetimes for RepoFile objects 2021-09-02 20:18:09 +01:00
Josh Creek 45d0f05d2d refactor(*): Replace GenerateFile method by just using the RepoFile constructor 2021-09-02 20:06:05 +01:00
Josh Creek c05c2c5eb2 feat(*): Add missing package information to csproj 2021-08-30 19:06:49 +01:00
Josh Creek 06aca19247 feat(*): Add documentation to StringHelper 2021-08-30 19:06:16 +01:00
Josh Creek 4600ebf82b feat(*): Add filename validity checks to SftpRepository 1.0.1 2021-08-30 18:56:54 +01:00
Josh Creek d80cc8237d feat(*): Update readme and licence for NuGet 1.0.0 2021-08-30 13:58:05 +01:00
Josh Creek 615994a68d refactor(*): Rename to Creek.FileRepository 2021-08-30 13:29:49 +01:00
Josh Creek 0fe9924f5b feat(*): Add all repositories to factory 2021-08-30 13:16:56 +01:00
Josh Creek b22d2f7f31 feat(*): Add base implementations of all repositories 2021-08-30 13:16:43 +01:00
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