Refactoring ShellTopology slightly

Merging IModule and IDependency information in ShellTopology
Avoids conceptual collision with Orchard Modules and Autofac IModule components

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-04-19 16:21:20 -07:00
parent 4ea2ff7327
commit 1800c632b6
5 changed files with 25 additions and 20 deletions

View File

@@ -34,15 +34,14 @@ namespace Orchard.Tests.Environment.ShellBuilders {
}
ShellTopology CreateTopology(params ShellTopologyItem[] items) {
return new ShellTopology {
Modules = items.OfType<ModuleTopology>(),
Dependencies = items.OfType<DependencyTopology>(),
Controllers = items.OfType<ControllerTopology>(),
Records = items.OfType<RecordTopology>(),
};
}
ModuleTopology WithModule<T>() {
return new ModuleTopology { Type = typeof(T) };
DependencyTopology WithModule<T>() {
return new DependencyTopology { Type = typeof(T), Parameters = Enumerable.Empty<ShellParameter>() };
}
ControllerTopology WithController<T>(string areaName, string controllerName) {