mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 05:23:33 +08:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user