Added unit tests for ManyObjectResolverBase for the different lifetime scope of instantiated objects.

This commit is contained in:
shannon@ShandemVaio
2012-08-01 10:48:19 +06:00
parent d4806895a9
commit c2ee1e63bb
4 changed files with 156 additions and 52 deletions

View File

@@ -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