Started converting content model mapping over to use AutoMapper to fix the composite tabs/properties. New unit tests for the mapping as well.

This commit is contained in:
Shannon
2013-07-25 15:31:26 +10:00
parent 7d6736907f
commit 4b8fed9f06
22 changed files with 548 additions and 117 deletions

View File

@@ -11,7 +11,7 @@ namespace Umbraco.Web.Models.Mapping
{
#region Mapper config
public override void ConfigureMappings(IConfiguration config)
public override void ConfigureMappings(IConfiguration config, ApplicationContext applicationContext)
{
config.CreateMap<IUser, UserDetail>()
.ForMember(detail => detail.UserId, opt => opt.MapFrom(user => GetIntId(user.Id)))