Commit Graph

8 Commits

Author SHA1 Message Date
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 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