SPRNET-1514 renaming DelegatingFactoryObject and related tests

This commit is contained in:
Steve Bohlen
2012-07-20 18:12:07 -04:00
parent 408f1b4ff9
commit 28f5e66c23
2 changed files with 5 additions and 5 deletions

View File

@@ -34,18 +34,18 @@ namespace Spring.Objects.Factory.Support
/// </para>
/// </remarks>
/// <typeparam name="T"></typeparam>
public class DelegatingFactoryObject<T> : IFactoryObject
public class DelegateInvokingFactoryObject<T> : IFactoryObject
{
private readonly bool _isSingleton;
private readonly Func<T> _builderDelegate;
/// <summary>
/// Initializes a new instance of the <see cref="DelegatingFactoryObject&lt;T&gt;"/> class.
/// Initializes a new instance of the <see cref="DelegateInvokingFactoryObjecteInvokingFactoryObject{T}"/> class.
/// </summary>
/// <param name="builderDelegate">The builder delegate.</param>
/// <param name="isSingleton">if set to <c>true</c> [is singleton].</param>
public DelegatingFactoryObject(Func<T> builderDelegate, bool isSingleton)
public DelegateInvokingFactoryObject(Func<T> builderDelegate, bool isSingleton)
{
_builderDelegate = builderDelegate;
_isSingleton = isSingleton;

View File

@@ -5,7 +5,7 @@ using Spring.Context.Support;
namespace Spring.Objects.Factory.Support
{
[TestFixture]
public class DelegatingFactoryObjectTests
public class DelegateInvokingFactoryObjectTests
{
[SetUp]
public void _TestSetUp()
@@ -18,7 +18,7 @@ namespace Spring.Objects.Factory.Support
private void RegisterDelegatingFactoryWithContext(bool buildSingletonObjectsWhenInvoked)
{
var targetBuilder = new ThingThatBuildsTargets();
var factory = new DelegatingFactoryObject<TargetToBuild>(targetBuilder.BuildTarget, buildSingletonObjectsWhenInvoked);
var factory = new DelegateInvokingFactoryObject<TargetToBuild>(targetBuilder.BuildTarget, buildSingletonObjectsWhenInvoked);
Assume.That(ContextRegistry.GetContext(), Is.InstanceOf<IConfigurableApplicationContext>(), "test requires a registered context that implements IConfigurableApplicationContext!");