Saturday, August 20, 2011

four random things

  1. Rebuilding our data project will fire the appropriate SQL script to drop and wipe the local database where building the whole of the solution may not. I don't know why right now.
  2. One may run a console application kept in a separate project by right-clicking on the project and selecting: Debug > Start New Instance (I had introduced the ZDataLoader concept of CodeCampServer to our app and it was determined that it would be best if ZDataLoader was not run as a unit test but was instead part of a standalone project for populating data.
  3. Turn off line numbering in Visual Studio 2010 at Tool > Options > Text Editor > All Languages (the same place one sets how many spaces are in tabs)
  4. var foo = TestUtils.BuildTestController(); is preferred to
     
    var foo = new BarController(); in testing as the former allows for mocking HttpContext and Session. This is something that Joel Holder rolled. It is part of our app only.

No comments:

Post a Comment