Fixes failing mapper test

This commit is contained in:
Per Ploug
2017-01-10 16:54:46 +01:00
parent c46f38c73b
commit f036bc90c3

View File

@@ -10,7 +10,8 @@ namespace Umbraco.Web.Models.Mapping
{
public override void ConfigureMappings(IConfiguration config, ApplicationContext applicationContext)
{
config.CreateMap<ITemplate, TemplateDisplay>();
config.CreateMap<ITemplate, TemplateDisplay>()
.ForMember(x => x.Notifications, exp => exp.Ignore());
config.CreateMap<TemplateDisplay, Template>()
.ForMember(x => x.Key, exp => exp.Ignore())