public static FilePath?GetListingsPath(GameCategory category, DirectoryPath dataPath) { var categoryInject = new GameCategoryInjection(category); return(new CreationClubListingsPathProvider( categoryInject, new CreationClubEnabledProvider( categoryInject), new GameDirectoryInjection(dataPath.Directory !.Value)).Path); }
public static IEnumerable <IModListingGetter> GetListings(GameCategory category, DirectoryPath dataPath) { var gameCategoryInjection = new GameCategoryInjection(category); var dataDirectoryInjection = new DataDirectoryInjection(dataPath); return(new CreationClubListingsProvider( IFileSystemExt.DefaultFilesystem, dataDirectoryInjection, new CreationClubListingsPathProvider( gameCategoryInjection, new CreationClubEnabledProvider( gameCategoryInjection), new GameDirectoryInjection(dataPath.Directory !.Value)), new CreationClubRawListingsReader()).Get()); }