|
From: <jer...@us...> - 2008-10-03 16:34:42
|
Revision: 167
http://structuremap.svn.sourceforge.net/structuremap/?rev=167&view=rev
Author: jeremydmiller
Date: 2008-10-03 16:34:30 +0000 (Fri, 03 Oct 2008)
Log Message:
-----------
more tests
Modified Paths:
--------------
trunk/Source/StructureMap/Container.cs
trunk/Source/StructureMap/IContainer.cs
trunk/Source/StructureMap/Model.cs
trunk/Source/StructureMap/ObjectFactory.cs
Modified: trunk/Source/StructureMap/Container.cs
===================================================================
--- trunk/Source/StructureMap/Container.cs 2008-10-03 16:24:32 UTC (rev 166)
+++ trunk/Source/StructureMap/Container.cs 2008-10-03 16:34:30 UTC (rev 167)
@@ -79,7 +79,7 @@
#region IContainer Members
- public Model Model
+ public IModel Model
{
get { return _model; }
}
Modified: trunk/Source/StructureMap/IContainer.cs
===================================================================
--- trunk/Source/StructureMap/IContainer.cs 2008-10-03 16:24:32 UTC (rev 166)
+++ trunk/Source/StructureMap/IContainer.cs 2008-10-03 16:34:30 UTC (rev 167)
@@ -9,7 +9,7 @@
{
public interface IContainer
{
- Model Model { get; }
+ IModel Model { get; }
T GetInstance<T>(string instanceKey);
T GetInstance<T>();
Modified: trunk/Source/StructureMap/Model.cs
===================================================================
--- trunk/Source/StructureMap/Model.cs 2008-10-03 16:24:32 UTC (rev 166)
+++ trunk/Source/StructureMap/Model.cs 2008-10-03 16:34:30 UTC (rev 167)
@@ -6,8 +6,19 @@
namespace StructureMap
{
- public class Model : TypeRules
+ public interface IModel
{
+ bool HasDefaultImplementationFor(Type pluginType);
+ bool HasDefaultImplementationFor<T>();
+ IEnumerable<PluginTypeConfiguration> PluginTypes { get; }
+ IEnumerable<IInstance> InstancesOf(Type pluginType);
+ IEnumerable<IInstance> InstancesOf<T>();
+ bool HasImplementationsFor(Type pluginType);
+ bool HasImplementationsFor<T>();
+ }
+
+ public class Model : TypeRules, IModel
+ {
private readonly PipelineGraph _graph;
internal Model(PipelineGraph graph)
Modified: trunk/Source/StructureMap/ObjectFactory.cs
===================================================================
--- trunk/Source/StructureMap/ObjectFactory.cs 2008-10-03 16:24:32 UTC (rev 166)
+++ trunk/Source/StructureMap/ObjectFactory.cs 2008-10-03 16:34:30 UTC (rev 167)
@@ -105,7 +105,7 @@
container.Inject(name, instance);
}
- public static Model Model
+ public static IModel Model
{
get
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|