Sharing our knowledge

Michael Sync

Unity for Silverlight, Two Samples and Test Projects are on Codeplex now.

August 8th, 2008 by Michael Sync

I just committed all of my sourcecode for SLUnity to Codeplex. I have added one more sample and unit test projects at this time. You can probably download it from here. I think you guys can start playing the DI (Dependency Injection Pattern) and MVP (Model View Presenter Pattern) in Silverlight 2 beta2. You can also develop the extension (e.g. EventBroker Extension or etc) for Unity framework.

Download : Unity Community Contributions (Change Set 14032)

What’s new in this?

  • EventBrokerExtension for Silverlight and SimpleEventBroker Sample : You can learn how to CAB(Composite Application Block)/SCSF(SmartClient Software Factory) style Event Publishing and Event Subscription in Silverlight 2 Beta2.
  • ObjectBuilder.BuildPlan:  Unit Test project for ObjectBuilder
  • ObjectBuilder.Test : This is also another unit test for Object Builder.
  • SLUnity.Test: This is a unit test project for Unity for Silverlight 2 Beta2.

Notes ~

1) All of those Unit Test projects are using Silverlight UnitTest Framework from Jeff Wilcox. You can download that framework and Visual Studio 2008 template for Silverlight Unit Test from this link. If you are very new to SIlverlight Unit Testing, please take a look this tutorial.

2) As Unity.Configuration is still missing in the project, all test cases related to Unity.Configuration are removed from Test projects.

3) Due to the Silverlight Security limitation, I have to change the most of private classes, interfaces, constructors and etc to public.

4) Due to the limitation of Silverlight, all converter classes are removed.

Okay. That’s all for now. Feel free to let me know if you have any suggestion or comment. Thanks.

Related ~

12 Responses

  1. Michael Sync » Unity Application Block (Unity) for Silverlight and StopLight QuickStart Says:

    [...] UPDATED: Unity for Silverlight, two Samples and Unit Test projects are on Codeplex now. [...]

  2. Alex Espinoza Says:

    Very nice work. I am very interested into it. I will try it later when I get home.

    Nice Work!.

  3. Michael Sync Says:

    Hey Alex,

    Thanks.. Yes. Please let me know if you have any suggestion or comment after playing with SLUnity. I hope you are gonna like it..

    thanks again, man

  4. Young Oh Says:

    Many thanks for your great work. I have been using DILight within Prism with great success. I expect and wait for SLUnity becoming part of Prism sooner than later. Well done, Michael!

  5. Silverlight Cream for August 09, 2008 - 2 -- #342 Says:

    [...] a nice short article on her exploration, with links to the folks she learned from… thanks, Anna! Unity for Silverlight, Two Samples and Test Projects are on Codeplex now. Michael Sync has posted a bunch of Unity code on CodePlex for our viewing pleasure and possible use [...]

  6. Silverlight 2.0 RTM? Silverlight vNext « Tales from a Trading Desk Says:

    [...] SLUnity [...]

  7. Nic Says:

    Hi Michael,

    It seems the latest unitycontributions-XXXX.zip will not fully unzip because they contain password protected files.

    Any ideas?

    Thanks!

  8. Miguel Madero Says:

    Interesting work. I’m glad to see this.

    Just one small tip, isntead of changed the access to public you could have used internal and mark the assembly with the InternalsVisible attribute

  9. Michael Sync Says:

    Hi Nic,

    I’m not so sure about that. There are a lot of people who are contributing to UnityContrib. I’m just one of them. If you like to get the sourcecode of SLUnity, you can download it from sourcecode.

    Hi Miguel,

    Thanks a lot for your suggestion. I will change it.

  10. Michael Sync » A few updates for my readers Says:

    [...] I’m participating in UnityContrib project to contribute the Silverlight version of Unity (SLUnity) for Silverlight Community. I recieved serveral requests to support the SLUnity Configuration. I [...]

  11. Miguel Madero Says:

    Michael,

    Is this part of the new Prism v2?

  12. Michael Sync » Last Day in Xuenn Says:

    [...] a chance to get very familiar with those frameworks in that company. I even manged to contribute some of my source code to Prism Contrib, Unity Contrib projects. We implemented two styles of MVVM [...]

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.