Files
Orchard/src/Orchard.Tests/ContainerTestBase.cs
Louis DeJardin 7e02c2a75f Implementing work context and accessor
Projects access of per-unit-of-work components (request lifetime scope) for singleton (per shell lifetime scope) components
Preparing to rationalize and eliminate the various ah-hoc container and scoping abstractions

--HG--
branch : dev
2010-09-02 14:02:33 -07:00

21 lines
559 B
C#

using Autofac;
using NUnit.Framework;
using Orchard.Tests.Utility;
namespace Orchard.Tests {
public class ContainerTestBase {
protected IContainer _container;
[SetUp]
public virtual void Init() {
var builder = new ContainerBuilder();
Register(builder);
_container = builder.Build();
Resolve(_container);
}
protected virtual void Register(ContainerBuilder builder) { }
protected virtual void Resolve(IContainer container) { }
}
}