Lessons Learned in Unit Testing Session – DDD8

31Jan10
DDD8  was a lot of fun!
I really didn’t know what to expect and it turned out great, and got to a few talks ( not as many as I wanted tho) and met personally a lot of really interesting people.
Moving on swiftly to the meaty bit of the post:
I’ve  uploaded the code and slides to github, I m hoping I can improve this samples with time, if there is anything wrong apologies in advance, first time using git as a committing to a project so I m bound to get it wrong. Looking forward to James Gregory E-Van on git so I can learn more on the topic :).
I’m sure I ll look at the code sometime later and think OMG! how did I dare to present this in public, but I guess is the nature of the beast :).
If you saw the talk please let me know what you think, as I would appreciate any feedback, particularly the parts that I can make better. So far I the feedback I have is:
  • I do speak too quick,
  • I should talk about legacy code and how to deal with that
I posted the code in the same way I presented it, this means there is a OrderService_version1, 2 and 3, hopefully you can follow the code pretty much as we did it in the talk.
There was some  questions, and I said I ll post some links here:
Books:
The Art of Unit Testing (Roy Osherove),  the talk is heavily inspired by this book
xUnit Test Patterns, Refactoring Test Code ( Meszaros), Great book if you are looking for more detail. Perfect as a reference book
TDD by Example by Kent Beck, a very hands on approach highly recomended.
Working Effectively with Legacy Code, Michael Feathers – A must read if you are interested in testing (whether you are working with legacy code or not).
Tools:
During the talk I was using
Unit testing frameworks:
Mocking Frameworks:
moq
Other tools  mentioned:
Rhino  Mocks: Possibly the most used Mocking Framework
NCommon: General purpose library, definitely worth a check
Ninject: IoC container ( there is also .. Ninject.MVC that helps you wire up the dependencies of your controllers on they fly, very useful )
Windsor: IoC container
If there are any questions or comments, please do let me know
Thanks to the organizers and everyone there, it was a wonderful experience that I m hoping to repeat.
Cheers
Advertisements


6 Responses to “Lessons Learned in Unit Testing Session – DDD8”

  1. 1 Craig

    Hi Andrea,

    Thanks for the excellent talk – a good structure, using the OrderService example as a focus for the principles you wanted to get across.

    Can I ask what test runner you were using during your demos?

  2. 2 roundcrisis

    Hi Craig:

    You are too kind, and thanks for your blog post too, but I m glad you found it helpful.
    I was using the resharper test runner with xUnit contrib
    Cheers

  3. 3 Mateo

    Andrea Magnorsky? Tanto tiempo.. Como te trata la vida en Irlanda?
    De casualidad llegué a éste blog, y me imagino que sos vos la que lo escribe.
    No se si te acordarás de mí, pero fuimos compañeros en la UTN. Igual te dejo saludos.
    Mateo.

  4. 4 roundcrisis

    Mateo, tanto tiempo, donde andas vos?


  1. 1 The Morning Brew - Chris Alcock » The Morning Brew #530
  2. 2 DDD8 – post-event commentary #DDD8

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: