Renamed config interfaces properly with Section suffix, re-implemented the For<T> UmbracoConfiguration method to retreive specific settings... might use this entirely instead of the nested access as it might make it easier to mock.
This commit is contained in:
@@ -11,9 +11,9 @@ namespace Umbraco.Core.Persistence
|
||||
/// </summary>
|
||||
public class RepositoryFactory
|
||||
{
|
||||
private readonly IUmbracoSettings _settings;
|
||||
private readonly IUmbracoSettingsSection _settings;
|
||||
|
||||
public RepositoryFactory(IUmbracoSettings settings)
|
||||
public RepositoryFactory(IUmbracoSettingsSection settings)
|
||||
{
|
||||
_settings = settings;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user