Hi Tuna
Thanks for the reply.
Sorry to say but what you are saying doesn't quite make sense to me...
Test Case 1:
Assert.AreSame(singleton, singleton1);
Assert.AreNotSame(instance, instance1);
On May 24, 5:28 pm, Tuna Toksoz <[email protected]> wrote:
> Test Case 1: You're using Transient so they won't be same at all. You'll get
> different instances
> Test Case 2: Fails because when you ask IMyInterface, you'll get the
> component registered first.
> Test Case 3 is what you see from above reasons.
>
> Tuna Toksöz
> Eternal sunshine of the open source mind.
>
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike
>
> On Sun, May 24, 2009 at 9:35 AM, vdhant <[email protected]> wrote:
>
> > var singleton = container.Resolve<IMyInterface>();
> > var singleton1 = container.Resolve<IMyInterface>();
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---