mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Updating Autofac.dll with small change for implicit collections issue
--HG-- branch : dev
This commit is contained in:
Binary file not shown.
@@ -3,6 +3,11 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Autofac;
|
using Autofac;
|
||||||
|
using Autofac.Builder;
|
||||||
|
using Autofac.Core;
|
||||||
|
using Autofac.Core.Activators.Delegate;
|
||||||
|
using Autofac.Core.Lifetime;
|
||||||
|
using Autofac.Core.Registration;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace Orchard.Tests.Environment.AutofacUtil {
|
namespace Orchard.Tests.Environment.AutofacUtil {
|
||||||
@@ -13,7 +18,7 @@ public class AutofacTests {
|
|||||||
public class Foo2 : IFoo { }
|
public class Foo2 : IFoo { }
|
||||||
public class Foo3 : IFoo { }
|
public class Foo3 : IFoo { }
|
||||||
|
|
||||||
[Test]
|
[Test(Description = "Exercises a problem in a previous version, to make sure older Autofac.dll isn't picked up")]
|
||||||
public void EnumerablesFromDifferentLifetimeScopesShouldReturnDifferentCollections() {
|
public void EnumerablesFromDifferentLifetimeScopesShouldReturnDifferentCollections() {
|
||||||
var rootBuilder = new ContainerBuilder();
|
var rootBuilder = new ContainerBuilder();
|
||||||
rootBuilder.RegisterType<Foo1>().As<IFoo>();
|
rootBuilder.RegisterType<Foo1>().As<IFoo>();
|
||||||
|
Reference in New Issue
Block a user