Unit testing presentation

Published 11/26/2009 by Dave in General | Test
Tags:

A small presentation to show how unit testing can be used to show/identify poor design (strong coupling).

Downloads:
Presentation: Unit testing.rar (2.89 mb) <BTW, screenshots which show the startbar are actually videos, just click on the video to make it run>
Code (before & after): UnitTesting Examples.rar (150.51 kb)

It covers

  • Simple shopping cart system
  • Simple unit test
  • Redesign
  • Unit test using Mocking

A generic simple domain, so the concept can be shown.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

a number of articles by a development team whom implemented a web site using Sharp Architecture

Bill's link

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

I fnd it fun to look at Architecture, as when it comes to building web applications you do not want to re invent the wheel every time. before recently there where not many designs for using .Net in a n-tier approach which did not contain DataSets. If you are like me and come from a OO back ground you may see DataSets to be DataCentric and not easy to apply domain rules to the data (neatly).

With the Alt.Net movement promoting a clean OO approch there has been a nice shift from the DataSet designs to Domain Driven technques. The first publised example framework was Patterns in Action. This is quite nice in the sence it promotes the Gang of Four patterns along with some of Martin Fowlers Pattern of Enterprise Application Architecture (PEAA, one of my faviourte books). I have the .Net 2.0 copy (there is a .Net 3.5 one now), which i would reconmned just so you can see how things fit together.

However, there has been another Architecture I have been following, its S#arp Architecture. This is where all my friends woudl know go, "he mentioning it again", at the same time they will think "but he is right this is worth a look". the SA has just released its version 1 RTM release, of which im partictually found of the WCF addition. If you have not been keeping an eye on this I would reconmend downloading the RC2 (just for the word document) and the RTM (for the updated code). I found this Architcture to be extremely impressive. Its easy to understand and its easer to extend. The best thing is the price tag (its FREE). 

Before you consider looking at an architecture in .Net I would highly reconmend reading the Foundations of Programming, then looking at S#arp Architecture. you will note between these 2 you will have knowlegde of some extremely good tools and patterns.

thats it for my rant,,, go look at the new S#arp Arhicture now!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Resharper Cheet Sheets

Published 7/2/2009 by Dave in General

The tool to rule them all Laughing

Link to the Documents - this page has 2 links to the Keyboard mappings, to find out which setting you have in Visual Studio 2008

ReSharper -> Options

in the "ReSharper - Options" window, choose the "General" tab, and you will see under the "visual studio intergration" area which mapping you have set

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Community Choice awards

Published 6/30/2009 by Dave in General

Looks like source forge have opened the voting for your favorite projects/programs.

Place your vote

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

DDD 7 Voting

Published 9/23/2008 by Dave in General

Its that time again!!!

Developer Day has open its voting for DDD 7 !!

http://www.developerday.co.uk/ddd/votesessions.asp <- vote for what you want to see.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Hug a developer today

Published 9/4/2008 by Dave in General

I was reading a blog post by ayende and he had a link to this video, showing the developers in pain. I know a few developers that could relate.

Hug a Developer today!!!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Vista MSI Installing problem!!

Published 4/23/2008 by Dave in General

With vista's new Security settings, you may find that you cannot install software using an MSI. Even though during the install process you have granted it Admin access. (thus resulting in a msg box similar to the following: )

 

 

an Error code of 2869 or similar... why.. and what the monkies is going on. Well i do not know the full reason, but I can give you a small work around

open up your exporer and navigate to "C:\Windows\System32"

right click on the cmd.exe and select "Run as Administrator"

 

In the newly opened CMD window (note in the top left it says Administrator) navigate to the msi setup file and run it via the cmd... this will now install the software.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Visual Studio Icons

Published 4/23/2008 by Dave in asp.net | dotNet | General

Visual Studio 2005 and 2008 came with icons!!

VS 2008 location
C:\Program Files\Microsoft Visual Studio 9.0\Common7\VS2008ImageLibrary\1033

 VS 2005 location
C:\Program Files\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary

 

Hey we got some icons... :D

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5