*Test Case 1:
I am telling it that the keyed version should be Transitional and any
default version should be a Singlton...*

No, you're saying that default one has name "Instance" and it is transient.
It doesn't make a change if you specify a name or no, the first one is the
default one.



*Test Case 2:*
*I am telling it that the keyed version should be Singlton and any default
version should be a Transitional...*

No again, you're saying that default one is named "Singleton" and it is
singleton indeed. It is the first registered one so it is the default one.


Tuna Toksöz
Eternal sunshine of the open source mind.

http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike




On Sun, May 24, 2009 at 12:05 PM, vdhant <[email protected]> wrote:

> Whoops that wan't suppose to go up yet...
>
> Hi Tuna
> Thanks for the reply.
> Sorry to say but what you are saying doesn't quite make sense to me...
>
> Test Case 1:
> I am telling it that the keyed version should be Transitional and any
> default version should be a Singlton...
> The test case I have reflects this exspectation.
>    Assert.AreSame(singleton, singleton1);      >>FAIL
>    Assert.AreNotSame(instance, instance1);  >>PASS
> But for some reason castle is saying that both registrations are
> Transitional....
>
>
> Test Case 2:
> I am telling it that the keyed version should be Singlton and any
> default version should be a Transitional...
> The test case I have reflects this exspectation.
>    Assert.AreSame(singleton, singleton1);      >>PASS
>    Assert.AreNotSame(instance, instance1);  >>FAIL
> But for some reason castle is saying that both registrations are
> Singlton....
>
> Test Case 3:
> When I use a key for both versions it works correctly...
>    Assert.AreSame(singleton, singleton1);      >>PASS
>    Assert.AreNotSame(instance, instance1);  >>PASS
> It gets it right here...
>
> So in short this test case to me shows that I can't setup a regault
> lifestyle for a registrations that have keys if a keyed version of the
> same registration exists... is that correct????
> Cheers
> Anthony
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to