diff --git a/src/Umbraco.Abstractions/MediaTypeExtensions.cs b/src/Umbraco.Abstractions/MediaTypeExtensions.cs
index 4e2ae5822a..3a2a3ba6e2 100644
--- a/src/Umbraco.Abstractions/MediaTypeExtensions.cs
+++ b/src/Umbraco.Abstractions/MediaTypeExtensions.cs
@@ -1,8 +1,8 @@
namespace Umbraco.Core.Models
{
- internal static class MediaTypeExtensions
+ public static class MediaTypeExtensions
{
- internal static bool IsSystemMediaType(this IMediaType mediaType) =>
+ public static bool IsSystemMediaType(this IMediaType mediaType) =>
mediaType.Alias == Constants.Conventions.MediaTypes.File
|| mediaType.Alias == Constants.Conventions.MediaTypes.Folder
|| mediaType.Alias == Constants.Conventions.MediaTypes.Image;
diff --git a/src/Umbraco.Abstractions/Models/ContentEditing/Permission.cs b/src/Umbraco.Abstractions/Models/ContentEditing/Permission.cs
index 7b444e5959..2bb905200a 100644
--- a/src/Umbraco.Abstractions/Models/ContentEditing/Permission.cs
+++ b/src/Umbraco.Abstractions/Models/ContentEditing/Permission.cs
@@ -22,7 +22,7 @@ namespace Umbraco.Web.Models.ContentEditing
/// We'll use this to map the categories but it wont' be returned in the json
///
[IgnoreDataMember]
- internal string Category { get; set; }
+ public string Category { get; set; }
///
/// The letter from the IAction
diff --git a/src/Umbraco.Abstractions/Models/DataTypeExtensions.cs b/src/Umbraco.Abstractions/Models/DataTypeExtensions.cs
index c2116c6c45..4f4bd4d6c3 100644
--- a/src/Umbraco.Abstractions/Models/DataTypeExtensions.cs
+++ b/src/Umbraco.Abstractions/Models/DataTypeExtensions.cs
@@ -75,7 +75,7 @@ namespace Umbraco.Core.Models
///
/// The data type definition.
///
- internal static bool IsBuildInDataType(this IDataType dataType)
+ public static bool IsBuildInDataType(this IDataType dataType)
{
return IsBuildInDataType(dataType.Key);
}
@@ -83,7 +83,7 @@ namespace Umbraco.Core.Models
///
/// Returns true if this date type is build-in/default.
///
- internal static bool IsBuildInDataType(Guid key)
+ public static bool IsBuildInDataType(Guid key)
{
return IdsOfBuildInDataTypes.Contains(key);
}
diff --git a/src/Umbraco.Web/Models/Mapping/ContentPropertyBasicMapper.cs b/src/Umbraco.Abstractions/Models/Mapping/ContentPropertyBasicMapper.cs
similarity index 100%
rename from src/Umbraco.Web/Models/Mapping/ContentPropertyBasicMapper.cs
rename to src/Umbraco.Abstractions/Models/Mapping/ContentPropertyBasicMapper.cs
diff --git a/src/Umbraco.Web/Models/Mapping/ContentPropertyDisplayMapper.cs b/src/Umbraco.Abstractions/Models/Mapping/ContentPropertyDisplayMapper.cs
similarity index 100%
rename from src/Umbraco.Web/Models/Mapping/ContentPropertyDisplayMapper.cs
rename to src/Umbraco.Abstractions/Models/Mapping/ContentPropertyDisplayMapper.cs
diff --git a/src/Umbraco.Web/Models/Mapping/ContentPropertyDtoMapper.cs b/src/Umbraco.Abstractions/Models/Mapping/ContentPropertyDtoMapper.cs
similarity index 100%
rename from src/Umbraco.Web/Models/Mapping/ContentPropertyDtoMapper.cs
rename to src/Umbraco.Abstractions/Models/Mapping/ContentPropertyDtoMapper.cs
diff --git a/src/Umbraco.Web/Models/Mapping/ContentPropertyMapDefinition.cs b/src/Umbraco.Abstractions/Models/Mapping/ContentPropertyMapDefinition.cs
similarity index 100%
rename from src/Umbraco.Web/Models/Mapping/ContentPropertyMapDefinition.cs
rename to src/Umbraco.Abstractions/Models/Mapping/ContentPropertyMapDefinition.cs
diff --git a/src/Umbraco.Infrastructure/Models/Mapping/MapperContextExtensions.cs b/src/Umbraco.Abstractions/Models/Mapping/MapperContextExtensions.cs
similarity index 100%
rename from src/Umbraco.Infrastructure/Models/Mapping/MapperContextExtensions.cs
rename to src/Umbraco.Abstractions/Models/Mapping/MapperContextExtensions.cs
diff --git a/src/Umbraco.Web/PasswordConfigurationExtensions.cs b/src/Umbraco.Abstractions/PasswordConfigurationExtensions.cs
similarity index 96%
rename from src/Umbraco.Web/PasswordConfigurationExtensions.cs
rename to src/Umbraco.Abstractions/PasswordConfigurationExtensions.cs
index 1105fc31a7..be13b574ed 100644
--- a/src/Umbraco.Web/PasswordConfigurationExtensions.cs
+++ b/src/Umbraco.Abstractions/PasswordConfigurationExtensions.cs
@@ -5,7 +5,7 @@ using Umbraco.Core.Services;
namespace Umbraco.Web
{
- internal static class PasswordConfigurationExtensions
+ public static class PasswordConfigurationExtensions
{
///
/// Returns the configuration of the membership provider used to configure change password editors
diff --git a/src/Umbraco.Web/Models/ContentEditing/UserInvite.cs b/src/Umbraco.Infrastructure/Models/ContentEditing/UserInvite.cs
similarity index 97%
rename from src/Umbraco.Web/Models/ContentEditing/UserInvite.cs
rename to src/Umbraco.Infrastructure/Models/ContentEditing/UserInvite.cs
index 3adf10c467..f1c6cf6c04 100644
--- a/src/Umbraco.Web/Models/ContentEditing/UserInvite.cs
+++ b/src/Umbraco.Infrastructure/Models/ContentEditing/UserInvite.cs
@@ -2,8 +2,8 @@
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
+using Umbraco.Composing;
using Umbraco.Core;
-using Umbraco.Web.Composing;
namespace Umbraco.Web.Models.ContentEditing
{
diff --git a/src/Umbraco.Web/Models/Mapping/ContentTypeMapDefinition.cs b/src/Umbraco.Infrastructure/Models/Mapping/ContentTypeMapDefinition.cs
similarity index 99%
rename from src/Umbraco.Web/Models/Mapping/ContentTypeMapDefinition.cs
rename to src/Umbraco.Infrastructure/Models/Mapping/ContentTypeMapDefinition.cs
index de64b15a0f..f7a2d6376b 100644
--- a/src/Umbraco.Web/Models/Mapping/ContentTypeMapDefinition.cs
+++ b/src/Umbraco.Infrastructure/Models/Mapping/ContentTypeMapDefinition.cs
@@ -18,7 +18,7 @@ namespace Umbraco.Web.Models.Mapping
///
/// Defines mappings for content/media/members type mappings
///
- internal class ContentTypeMapDefinition : IMapDefinition
+ public class ContentTypeMapDefinition : IMapDefinition
{
private readonly PropertyEditorCollection _propertyEditors;
private readonly IDataTypeService _dataTypeService;
@@ -591,7 +591,7 @@ namespace Umbraco.Web.Models.Mapping
return aliases.OrderBy(x => x);
}
- internal static Udi MapContentTypeUdi(IContentTypeComposition source)
+ public static Udi MapContentTypeUdi(IContentTypeComposition source)
{
if (source == null) return null;
diff --git a/src/Umbraco.Web/Models/Mapping/DataTypeMapDefinition.cs b/src/Umbraco.Infrastructure/Models/Mapping/DataTypeMapDefinition.cs
similarity index 98%
rename from src/Umbraco.Web/Models/Mapping/DataTypeMapDefinition.cs
rename to src/Umbraco.Infrastructure/Models/Mapping/DataTypeMapDefinition.cs
index 0446c397bc..d57809c844 100644
--- a/src/Umbraco.Web/Models/Mapping/DataTypeMapDefinition.cs
+++ b/src/Umbraco.Infrastructure/Models/Mapping/DataTypeMapDefinition.cs
@@ -7,12 +7,11 @@ using Umbraco.Core.Logging;
using Umbraco.Core.Mapping;
using Umbraco.Core.Models;
using Umbraco.Core.PropertyEditors;
-using Umbraco.Web.Composing;
using Umbraco.Web.Models.ContentEditing;
namespace Umbraco.Web.Models.Mapping
{
- internal class DataTypeMapDefinition : IMapDefinition
+ public class DataTypeMapDefinition : IMapDefinition
{
private readonly PropertyEditorCollection _propertyEditors;
private readonly ILogger _logger;
@@ -142,7 +141,7 @@ namespace Umbraco.Web.Models.Mapping
// an empty fields list, which made no sense since there would be nothing to map to - and besides,
// a datatype without an editor alias is a serious issue - v8 wants an editor here
- if (string.IsNullOrWhiteSpace(dataType.EditorAlias) || !Current.PropertyEditors.TryGet(dataType.EditorAlias, out var editor))
+ if (string.IsNullOrWhiteSpace(dataType.EditorAlias) || !_propertyEditors.TryGet(dataType.EditorAlias, out var editor))
throw new InvalidOperationException($"Could not find a property editor with alias \"{dataType.EditorAlias}\".");
var configurationEditor = editor.GetConfigurationEditor();
diff --git a/src/Umbraco.Web/Models/Mapping/MemberTabsAndPropertiesMapper.cs b/src/Umbraco.Infrastructure/Models/Mapping/MemberTabsAndPropertiesMapper.cs
similarity index 93%
rename from src/Umbraco.Web/Models/Mapping/MemberTabsAndPropertiesMapper.cs
rename to src/Umbraco.Infrastructure/Models/Mapping/MemberTabsAndPropertiesMapper.cs
index 7dc3d55087..2cb226bec2 100644
--- a/src/Umbraco.Web/Models/Mapping/MemberTabsAndPropertiesMapper.cs
+++ b/src/Umbraco.Infrastructure/Models/Mapping/MemberTabsAndPropertiesMapper.cs
@@ -3,12 +3,12 @@ using System.Collections.Generic;
using System.Linq;
using Umbraco.Core;
using Umbraco.Core.Mapping;
-using Umbraco.Web.Composing;
using Umbraco.Core.Models;
using Umbraco.Core.Services;
using Umbraco.Web.Models.ContentEditing;
using Umbraco.Core.Dictionary;
using Umbraco.Core.Configuration;
+using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.Models.Mapping
{
@@ -20,7 +20,7 @@ namespace Umbraco.Web.Models.Mapping
/// This also ensures that the IsLocked out property is readonly when the member is not locked out - this is because
/// an admin cannot actually set isLockedOut = true, they can only unlock.
///
- internal class MemberTabsAndPropertiesMapper : TabsAndPropertiesMapper
+ public class MemberTabsAndPropertiesMapper : TabsAndPropertiesMapper
{
private readonly IUmbracoContextAccessor _umbracoContextAccessor;
private readonly ILocalizedTextService _localizedTextService;
@@ -28,8 +28,17 @@ namespace Umbraco.Web.Models.Mapping
private readonly IMemberService _memberService;
private readonly IMemberGroupService _memberGroupService;
private readonly IMemberPasswordConfiguration _memberPasswordConfiguration;
+ private readonly PropertyEditorCollection _propertyEditorCollection;
- public MemberTabsAndPropertiesMapper(ICultureDictionary cultureDictionary, IUmbracoContextAccessor umbracoContextAccessor, ILocalizedTextService localizedTextService, IMemberTypeService memberTypeService, IMemberService memberService, IMemberGroupService memberGroupService, IMemberPasswordConfiguration memberPasswordConfiguration, IContentTypeBaseServiceProvider contentTypeBaseServiceProvider)
+ public MemberTabsAndPropertiesMapper(ICultureDictionary cultureDictionary,
+ IUmbracoContextAccessor umbracoContextAccessor,
+ ILocalizedTextService localizedTextService,
+ IMemberTypeService memberTypeService,
+ IMemberService memberService,
+ IMemberGroupService memberGroupService,
+ IMemberPasswordConfiguration memberPasswordConfiguration,
+ IContentTypeBaseServiceProvider contentTypeBaseServiceProvider,
+ PropertyEditorCollection propertyEditorCollection)
: base(cultureDictionary, localizedTextService, contentTypeBaseServiceProvider)
{
_umbracoContextAccessor = umbracoContextAccessor ?? throw new ArgumentNullException(nameof(umbracoContextAccessor));
@@ -38,6 +47,7 @@ namespace Umbraco.Web.Models.Mapping
_memberService = memberService ?? throw new ArgumentNullException(nameof(memberService));
_memberGroupService = memberGroupService ?? throw new ArgumentNullException(nameof(memberGroupService));
_memberPasswordConfiguration = memberPasswordConfiguration;
+ _propertyEditorCollection = propertyEditorCollection;
}
///
@@ -108,7 +118,7 @@ namespace Umbraco.Web.Models.Mapping
Alias = $"{Constants.PropertyEditors.InternalGenericPropertiesPrefix}doctype",
Label = _localizedTextService.Localize("content/membertype"),
Value = _localizedTextService.UmbracoDictionaryTranslate(CultureDictionary, member.ContentType.Name),
- View = Current.PropertyEditors[Constants.PropertyEditors.Aliases.Label].GetValueEditor().View
+ View = _propertyEditorCollection[Constants.PropertyEditors.Aliases.Label].GetValueEditor().View
},
GetLoginProperty(_memberTypeService, member, _localizedTextService),
new ContentPropertyDisplay
diff --git a/src/Umbraco.Web/Models/Mapping/PropertyTypeGroupMapper.cs b/src/Umbraco.Infrastructure/Models/Mapping/PropertyTypeGroupMapper.cs
similarity index 99%
rename from src/Umbraco.Web/Models/Mapping/PropertyTypeGroupMapper.cs
rename to src/Umbraco.Infrastructure/Models/Mapping/PropertyTypeGroupMapper.cs
index 000e37f31f..5cdc9c5fa4 100644
--- a/src/Umbraco.Web/Models/Mapping/PropertyTypeGroupMapper.cs
+++ b/src/Umbraco.Infrastructure/Models/Mapping/PropertyTypeGroupMapper.cs
@@ -7,7 +7,6 @@ using Umbraco.Core.Models;
using Umbraco.Core.PropertyEditors;
using Umbraco.Core.Services;
using Umbraco.Core.Strings;
-using Umbraco.Web.Composing;
using Umbraco.Web.Models.ContentEditing;
namespace Umbraco.Web.Models.Mapping
diff --git a/src/Umbraco.Web/Models/Mapping/RedirectUrlMapDefinition.cs b/src/Umbraco.Infrastructure/Models/Mapping/RedirectUrlMapDefinition.cs
similarity index 95%
rename from src/Umbraco.Web/Models/Mapping/RedirectUrlMapDefinition.cs
rename to src/Umbraco.Infrastructure/Models/Mapping/RedirectUrlMapDefinition.cs
index 9386c60918..08c89b34f8 100644
--- a/src/Umbraco.Web/Models/Mapping/RedirectUrlMapDefinition.cs
+++ b/src/Umbraco.Infrastructure/Models/Mapping/RedirectUrlMapDefinition.cs
@@ -5,7 +5,7 @@ using Umbraco.Web.Routing;
namespace Umbraco.Web.Models.Mapping
{
- internal class RedirectUrlMapDefinition : IMapDefinition
+ public class RedirectUrlMapDefinition : IMapDefinition
{
private readonly IPublishedUrlProvider _publishedUrlProvider;
diff --git a/src/Umbraco.Web/Models/Mapping/TabsAndPropertiesMapper.cs b/src/Umbraco.Infrastructure/Models/Mapping/TabsAndPropertiesMapper.cs
similarity index 97%
rename from src/Umbraco.Web/Models/Mapping/TabsAndPropertiesMapper.cs
rename to src/Umbraco.Infrastructure/Models/Mapping/TabsAndPropertiesMapper.cs
index ea062de9eb..d9c76b5ebc 100644
--- a/src/Umbraco.Web/Models/Mapping/TabsAndPropertiesMapper.cs
+++ b/src/Umbraco.Infrastructure/Models/Mapping/TabsAndPropertiesMapper.cs
@@ -6,12 +6,11 @@ using Umbraco.Core.Mapping;
using Umbraco.Core.Models;
using Umbraco.Core.Services;
using Umbraco.Web.Models.ContentEditing;
-using Umbraco.Web.Composing;
using Umbraco.Core.Dictionary;
namespace Umbraco.Web.Models.Mapping
{
- internal abstract class TabsAndPropertiesMapper
+ public abstract class TabsAndPropertiesMapper
{
protected ICultureDictionary CultureDictionary { get; }
protected ILocalizedTextService LocalizedTextService { get; }
@@ -115,7 +114,7 @@ namespace Umbraco.Web.Models.Mapping
///
/// Creates the tabs collection with properties assigned for display models
///
- internal class TabsAndPropertiesMapper : TabsAndPropertiesMapper
+ public class TabsAndPropertiesMapper : TabsAndPropertiesMapper
where TSource : IContentBase
{
private readonly IContentTypeBaseServiceProvider _contentTypeBaseServiceProvider;
diff --git a/src/Umbraco.Web/Models/Mapping/UserMapDefinition.cs b/src/Umbraco.Infrastructure/Models/Mapping/UserMapDefinition.cs
similarity index 99%
rename from src/Umbraco.Web/Models/Mapping/UserMapDefinition.cs
rename to src/Umbraco.Infrastructure/Models/Mapping/UserMapDefinition.cs
index 556b15d72b..19a78bcbe4 100644
--- a/src/Umbraco.Web/Models/Mapping/UserMapDefinition.cs
+++ b/src/Umbraco.Infrastructure/Models/Mapping/UserMapDefinition.cs
@@ -4,7 +4,6 @@ using System.Globalization;
using System.Linq;
using Umbraco.Core;
using Umbraco.Core.Cache;
-using Umbraco.Web.Composing;
using Umbraco.Core.Configuration;
using Umbraco.Core.IO;
using Umbraco.Core.Mapping;
@@ -20,7 +19,7 @@ using Umbraco.Web.Services;
namespace Umbraco.Web.Models.Mapping
{
- internal class UserMapDefinition : IMapDefinition
+ public class UserMapDefinition : IMapDefinition
{
private readonly ISectionService _sectionService;
private readonly IEntityService _entityService;
diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
index fc184e8da0..704ce3fff4 100644
--- a/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
+++ b/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
@@ -53,8 +53,6 @@ namespace Umbraco.Tests.PublishedContent
var dataTypeService = new TestObjects.TestDataTypeService(
new DataType(new RichTextPropertyEditor(
Mock.Of(),
- Mock.Of(),
- Mock.Of(),
Mock.Of(),
Mock.Of(),
Mock.Of(),
diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
index ecfcca0e0d..04dbcc454c 100644
--- a/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
+++ b/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
@@ -59,7 +59,7 @@ namespace Umbraco.Tests.PublishedContent
var dataTypeService = new TestObjects.TestDataTypeService(
new DataType(new VoidEditor(logger, Mock.Of(), localizationService, LocalizedTextService, ShortStringHelper)) { Id = 1 },
new DataType(new TrueFalsePropertyEditor(logger, Mock.Of(), localizationService, IOHelper, ShortStringHelper, LocalizedTextService)) { Id = 1001 },
- new DataType(new RichTextPropertyEditor(logger, mediaService, contentTypeBaseServiceProvider, umbracoContextAccessor, Mock.Of(), localizationService, imageSourceParser, linkParser, pastedImages, ShortStringHelper, IOHelper, LocalizedTextService, Mock.Of())) { Id = 1002 },
+ new DataType(new RichTextPropertyEditor(logger,umbracoContextAccessor, Mock.Of(), localizationService, imageSourceParser, linkParser, pastedImages, ShortStringHelper, IOHelper, LocalizedTextService, Mock.Of())) { Id = 1002 },
new DataType(new IntegerPropertyEditor(logger, Mock.Of(), localizationService, ShortStringHelper, LocalizedTextService)) { Id = 1003 },
new DataType(new TextboxPropertyEditor(logger, Mock.Of(), localizationService, IOHelper, ShortStringHelper, LocalizedTextService)) { Id = 1004 },
new DataType(new MediaPickerPropertyEditor(logger, Mock.Of(), localizationService, IOHelper, ShortStringHelper, LocalizedTextService)) { Id = 1005 });
diff --git a/src/Umbraco.Tests/Web/Mvc/SurfaceControllerTests.cs b/src/Umbraco.Tests/Web/Mvc/SurfaceControllerTests.cs
index b6d2d92da0..e44a3cc5f2 100644
--- a/src/Umbraco.Tests/Web/Mvc/SurfaceControllerTests.cs
+++ b/src/Umbraco.Tests/Web/Mvc/SurfaceControllerTests.cs
@@ -1,5 +1,4 @@
using System;
-using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
@@ -7,7 +6,6 @@ using System.Web.Security;
using Moq;
using NUnit.Framework;
using Umbraco.Core.Cache;
-using Umbraco.Core.Configuration.UmbracoSettings;
using Umbraco.Core.Dictionary;
using Umbraco.Core.Logging;
using Umbraco.Core.Models.PublishedContent;
@@ -18,7 +16,6 @@ using Umbraco.Tests.Testing.Objects.Accessors;
using Umbraco.Web;
using Umbraco.Web.Mvc;
using Umbraco.Web.PublishedCache;
-using Umbraco.Web.Routing;
using Umbraco.Web.Security;
using Umbraco.Web.Security.Providers;
using Current = Umbraco.Web.Composing.Current;
@@ -134,7 +131,6 @@ namespace Umbraco.Tests.Web.Mvc
[Test]
public void Mock_Current_Page()
{
- var webRoutingSettings = Mock.Of(section => section.UrlProviderMode == "Auto");
var globalSettings = TestObjects.GetGlobalSettings();
var httpContextAccessor = TestHelper.GetHttpContextAccessor();
diff --git a/src/Umbraco.Web/Models/Mapping/CommonMapper.cs b/src/Umbraco.Web/Models/Mapping/CommonMapper.cs
index f8b99a444c..81a3fcb4cb 100644
--- a/src/Umbraco.Web/Models/Mapping/CommonMapper.cs
+++ b/src/Umbraco.Web/Models/Mapping/CommonMapper.cs
@@ -17,22 +17,20 @@ using UserProfile = Umbraco.Web.Models.ContentEditing.UserProfile;
namespace Umbraco.Web.Models.Mapping
{
- internal class CommonMapper
+ public class CommonMapper
{
private readonly IUserService _userService;
private readonly IContentTypeBaseServiceProvider _contentTypeBaseServiceProvider;
- private readonly IUmbracoContextAccessor _umbracoContextAccessor;
private readonly ContentAppFactoryCollection _contentAppDefinitions;
private readonly ILocalizedTextService _localizedTextService;
private readonly IHttpContextAccessor _httpContextAccessor;
private readonly ICurrentUserAccessor _currentUserAccessor;
- public CommonMapper(IUserService userService, IContentTypeBaseServiceProvider contentTypeBaseServiceProvider, IUmbracoContextAccessor umbracoContextAccessor,
+ public CommonMapper(IUserService userService, IContentTypeBaseServiceProvider contentTypeBaseServiceProvider,
ContentAppFactoryCollection contentAppDefinitions, ILocalizedTextService localizedTextService, IHttpContextAccessor httpContextAccessor, ICurrentUserAccessor currentUserAccessor)
{
_userService = userService;
_contentTypeBaseServiceProvider = contentTypeBaseServiceProvider;
- _umbracoContextAccessor = umbracoContextAccessor;
_contentAppDefinitions = contentAppDefinitions;
_localizedTextService = localizedTextService;
_httpContextAccessor = httpContextAccessor;
diff --git a/src/Umbraco.Web/Models/Mapping/MediaMapDefinition.cs b/src/Umbraco.Web/Models/Mapping/MediaMapDefinition.cs
index 3298f3bd1e..0523cbeda9 100644
--- a/src/Umbraco.Web/Models/Mapping/MediaMapDefinition.cs
+++ b/src/Umbraco.Web/Models/Mapping/MediaMapDefinition.cs
@@ -15,7 +15,7 @@ namespace Umbraco.Web.Models.Mapping
///
/// Declares model mappings for media.
///
- internal class MediaMapDefinition : IMapDefinition
+ public class MediaMapDefinition : IMapDefinition
{
private readonly CommonMapper _commonMapper;
private readonly ILogger _logger;
diff --git a/src/Umbraco.Web/Models/Mapping/MemberMapDefinition.cs b/src/Umbraco.Web/Models/Mapping/MemberMapDefinition.cs
index ee241f3245..d47f9df7c7 100644
--- a/src/Umbraco.Web/Models/Mapping/MemberMapDefinition.cs
+++ b/src/Umbraco.Web/Models/Mapping/MemberMapDefinition.cs
@@ -8,7 +8,7 @@ namespace Umbraco.Web.Models.Mapping
///
/// Declares model mappings for members.
///
- internal class MemberMapDefinition : IMapDefinition
+ public class MemberMapDefinition : IMapDefinition
{
private readonly CommonMapper _commonMapper;
private readonly MemberTabsAndPropertiesMapper _tabsAndPropertiesMapper;
diff --git a/src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs b/src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
index 7ab2ed2a36..8b8b118038 100644
--- a/src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
+++ b/src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
@@ -30,8 +30,6 @@ namespace Umbraco.Web.PropertyEditors
public class GridPropertyEditor : DataEditor
{
private readonly IUmbracoContextAccessor _umbracoContextAccessor;
- private readonly IDataTypeService _dataTypeService;
- private readonly ILocalizationService _localizationService;
private readonly IIOHelper _ioHelper;
private readonly ILogger _logger;
private readonly IMediaService _mediaService;
@@ -58,8 +56,6 @@ namespace Umbraco.Web.PropertyEditors
: base(logger, dataTypeService, localizationService, localizedTextService, shortStringHelper)
{
_umbracoContextAccessor = umbracoContextAccessor;
- _dataTypeService = dataTypeService;
- _localizationService = localizationService;
_ioHelper = ioHelper;
_logger = logger;
_mediaService = mediaService;
diff --git a/src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs b/src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
index 766a811fb1..50f514efe5 100644
--- a/src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
+++ b/src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
@@ -40,8 +40,6 @@ namespace Umbraco.Web.PropertyEditors
///
public RichTextPropertyEditor(
ILogger logger,
- IMediaService mediaService,
- IContentTypeBaseServiceProvider contentTypeBaseServiceProvider,
IUmbracoContextAccessor umbracoContextAccessor,
IDataTypeService dataTypeService,
ILocalizationService localizationService,
diff --git a/src/Umbraco.Web/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs b/src/Umbraco.Web/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs
index 67031faaa0..60857fd76c 100644
--- a/src/Umbraco.Web/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs
+++ b/src/Umbraco.Web/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs
@@ -1,17 +1,12 @@
using System.Text;
using Umbraco.Core;
-using Umbraco.Core.Macros;
using Umbraco.Core.PropertyEditors;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PropertyEditors.ValueConverters;
using Umbraco.Web.Templates;
using System.Linq;
using HtmlAgilityPack;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Services;
-using Umbraco.Web.Composing;
using Umbraco.Web.Macros;
-using System.Web;
using Umbraco.Core.Strings;
namespace Umbraco.Web.PropertyEditors.ValueConverters
diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj
index 7f40c33dda..b079026984 100755
--- a/src/Umbraco.Web/Umbraco.Web.csproj
+++ b/src/Umbraco.Web/Umbraco.Web.csproj
@@ -168,26 +168,15 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -466,14 +455,12 @@
-
-