More in this section

Forums / Developing with Sitefinity / Unit testing when accessing the config entries

Unit testing when accessing the config entries

1 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    11 Mar 2013
    Link to this post

    Hey there,
      I need to unit test a few of my classes...problem is in the context of a TestProject\TestMethod calls the the config entry (Config.Get<type>) are throwing Object Ref errors....run the same code in the context of the webapp and it works fine.

     What's best prac here?

    Steve

1 posts, 0 answered