mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-18 19:51:45 +08:00
Fix unit tests
--HG-- branch : dev
This commit is contained in:
@@ -45,8 +45,8 @@ namespace Orchard.Core.Tests.Settings.Metadata {
|
|||||||
builder.RegisterType<ContentDefinitionManager>().As<IContentDefinitionManager>();
|
builder.RegisterType<ContentDefinitionManager>().As<IContentDefinitionManager>();
|
||||||
builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>));
|
builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>));
|
||||||
builder.RegisterType(typeof(SettingsFormatter))
|
builder.RegisterType(typeof(SettingsFormatter))
|
||||||
.As(typeof(IMapper<XElement, IDictionary<string, string>>))
|
.As(typeof(IMapper<XElement, SettingsDictionary>))
|
||||||
.As(typeof(IMapper<IDictionary<string, string>, XElement>));
|
.As(typeof(IMapper<SettingsDictionary, XElement>));
|
||||||
_container = builder.Build();
|
_container = builder.Build();
|
||||||
|
|
||||||
_container.Mock<ISessionLocator>()
|
_container.Mock<ISessionLocator>()
|
||||||
|
|||||||
Reference in New Issue
Block a user