SPRNET-1514 renaming DelegatingFactoryObject and related tests
This commit is contained in:
@@ -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<T>"/> 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;
|
||||
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user