fixes lots of tests

This commit is contained in:
Shannon
2015-02-23 11:29:11 +01:00
parent c76be66028
commit 0ff5780944
2 changed files with 2 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ namespace Umbraco.Core.ObjectResolution
internal ContainerLazyManyObjectsResolver(IServiceContainer container, ILogger logger, Func<IEnumerable<Type>> typeListProducerList, ObjectLifetimeScope scope = ObjectLifetimeScope.Application)
: base(logger, typeListProducerList, scope)
{
if (container == null) throw new ArgumentNullException("container");
_container = container;
}

View File

@@ -35,6 +35,7 @@ namespace Umbraco.Core.ObjectResolution
internal LazyManyObjectsResolverBase(ILogger logger, Func<IEnumerable<Type>> typeListProducerList, ObjectLifetimeScope scope = ObjectLifetimeScope.Application)
: base(logger, scope)
{
if (typeListProducerList == null) throw new ArgumentNullException("typeListProducerList");
_typeListProducerList.Add(typeListProducerList);
Initialize();
}