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.
This commit is contained in:
Josh Creek
2021-08-29 23:32:13 +01:00
parent 8b1618eec7
commit 7039886034
+14
View File
@@ -39,5 +39,19 @@ namespace FileRepository
/// </summary>
Sql,
}
/// <summary>
/// Initialise an implementation of IFileRepository based on a selected enum member.
/// </summary>
/// <param name="repositoryType">The type of repository to initialise, based on the enum member.</param>
/// <returns>Returns an initialised repository.</returns>
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;
}
}
}