Unity, NUnit and NAnt

Last post 05-26-2009 1:23 AM by kram. 0 replies.

Sort Posts:

  • Unity, NUnit and NAnt

    05-26-2009, 1:23 AM
    • Member
      396 point Member
    • kram
    • Member since 12-08-2005, 6:59 PM
    • Melbourne, Australia
    • Posts 94

    Hi All,

    Im currently building a small app that has a normal project "MyProject" and a testing projec "MyProject.Test" all under the one solution.

    I want to use Unity as a DI solution to, basically, either use a Stub implementation of an interface for the debug builds or the NUnit tests, or use the proper implementation of the interface for the production build.

    Can I have a separate XML config file (my_test_config.xml) for Unity in my "MyProject.Test" project and a normal (my_config.xml) config file for my "MtProject" project? How would I implement this?

    How do I use a different dependency for the Debug build as opposed to the Prod build?

    I hope this makes sense!

    Cheers,

    Mark

    Filed under: , , , ,
Page 1 of 1 (1 items)