mirror of
https://github.com/jcreek/Creek.FileRepository.git
synced 2026-07-12 18:33:43 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user