From 70398860342519cfbc1a2940a2cd1e5cba8892d9 Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Sun, 29 Aug 2021 23:32:13 +0100 Subject: [PATCH] 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. --- FileRepository/Factory.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/FileRepository/Factory.cs b/FileRepository/Factory.cs index 09fea37..6a47560 100644 --- a/FileRepository/Factory.cs +++ b/FileRepository/Factory.cs @@ -39,5 +39,19 @@ namespace FileRepository /// Sql, } + + /// + /// Initialise an implementation of IFileRepository based on a selected enum member. + /// + /// The type of repository to initialise, based on the enum member. + /// Returns an initialised repository. + public IFileRepository GetFileRepository(RepositoryType repositoryType) + { + throw new NotImplementedException("This section won't work until another method is set up with at least one repository type."); + + //IFileRepository fileRepository = // Here we need to get the specific class of repository based on the RepositoryType enum. + + //return fileRepository; + } } }