Added unit tests for ManyObjectResolverBase for the different lifetime scope of instantiated objects.
This commit is contained in:
@@ -32,11 +32,11 @@ namespace Umbraco.Core
|
||||
/// TODO: However, it would make much more sense to do this and would speed up the application plus this would make the GetById method much easier.
|
||||
/// </remarks>
|
||||
protected LegacyTransientObjectsResolver(IEnumerable<Type> refreshers)
|
||||
: base(true)
|
||||
: base(ObjectLifetimeScope.Transient) // false = new objects every time
|
||||
{
|
||||
foreach (var l in refreshers)
|
||||
{
|
||||
this.Add(l);
|
||||
this.AddType(l);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user