Fixing tests

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-05-16 23:34:08 -07:00
parent 48be8159b9
commit 542e343e84
7 changed files with 34 additions and 60 deletions

View File

@@ -43,6 +43,8 @@ namespace Orchard.Tests.ContentManagement {
// builder.RegisterModule(new ImplicitCollectionSupportModule());
builder.RegisterModule(new ContentModule());
builder.RegisterType<DefaultContentManager>().As<IContentManager>().SingleInstance();
builder.RegisterType<DefaultContentManagerSession>().As<IContentManagerSession>();
builder.RegisterType<AlphaHandler>().As<IContentHandler>();
builder.RegisterType<BetaHandler>().As<IContentHandler>();
builder.RegisterType<GammaHandler>().As<IContentHandler>();
@@ -285,7 +287,7 @@ namespace Orchard.Tests.ContentManagement {
init.As<Epsilon>().Record.Quad = "v3";
});
_session.Flush();
_session.Clear();
_session.Clear();
}
[Test]