From 1813599e82b474b3bb5fe648960e8cc94bc178dd Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Mon, 30 Aug 2021 11:06:11 +0100 Subject: [PATCH] fix(*): Make Factory static to enable not having to instantiate it everywhere --- FileRepository/Factory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FileRepository/Factory.cs b/FileRepository/Factory.cs index 0598b39..28cb487 100644 --- a/FileRepository/Factory.cs +++ b/FileRepository/Factory.cs @@ -8,7 +8,7 @@ namespace FileRepository /// /// A factory to enable consumers of this package to easily get a specific type of repository. /// - public class Factory + public static class Factory { /// /// An enum to restrict users to only select valid repository types. @@ -46,7 +46,7 @@ namespace FileRepository /// /// The type of repository to initialise, based on the enum member. /// Returns an initialised repository. - public IFileRepository GetFileRepository(RepositoryType repositoryType) + public static IFileRepository GetFileRepository(RepositoryType repositoryType) { switch (repositoryType) {