Sign in
Dan Crevier's Blog
In search of a better name...
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
.Net development
ASP.NET
Debugging
DM-V-VM
FolderShare
HealthVault
Max
PageModel
PanelLayoutAnimator
pdc2005
SkyDrive
Tips & Tricks
Utilities
VirtualizingTilePanel
Vista
Web Perf
Windows Phone
WP7
WPF
Archive
Archives
December 2011
(2)
October 2011
(1)
September 2011
(2)
November 2008
(1)
July 2008
(1)
June 2008
(1)
May 2008
(2)
March 2008
(6)
February 2008
(1)
January 2008
(2)
October 2007
(1)
August 2007
(4)
July 2007
(4)
June 2007
(1)
March 2007
(1)
February 2007
(1)
January 2007
(1)
December 2006
(6)
November 2006
(2)
October 2006
(3)
September 2006
(8)
August 2006
(7)
July 2006
(6)
March 2006
(6)
February 2006
(11)
January 2006
(1)
December 2005
(2)
November 2005
(1)
October 2005
(3)
September 2005
(7)
June 2005
(6)
May 2005
(11)
April 2005
(3)
February 2005
(3)
January 2005
(3)
December 2004
(15)
November 2004
(4)
October 2004
(10)
September 2004
(8)
August 2004
(8)
July 2004
(5)
June 2004
(5)
May 2004
(13)
April 2004
(15)
March 2004
(18)
July, 2007
MSDN Blogs
>
Dan Crevier's Blog
>
July, 2007
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Dan Crevier's Blog
A pattern for unit testable Asp.net pages: Part 4
Posted
over 6 years ago
by
Dan Crevier
3
Comments
Okay, now for unit tests of the code from part 3 . The goal is to completely cover RenamePageModel. First we need mock implementations of IPageContext and IDataAccess. For IPageContext, we are going to use special exception types for page not found and...
Dan Crevier's Blog
A pattern for unit testable Asp.net pages: Part 3
Posted
over 6 years ago
by
Dan Crevier
5
Comments
In this post, I'm going to give an example of the pattern in action, built on the classes described in the last post . For the example, I've chosen something similar to the rename page on Live Folders . Here's how it should work: The Url should be of...
Dan Crevier's Blog
A pattern for unit testable Asp.net pages: Part 2
Posted
over 6 years ago
by
Dan Crevier
2
Comments
In part 1 , I gave an overview of the pattern. In this part, I will describe some of the core classes. Let's start off with the PageModel itself. It's the most simple. It is an abstract class. Subclasses must implement OnLoaded. It has an associated IPageContext...
Dan Crevier's Blog
A pattern for unit testable Asp.net pages: Part 1
Posted
over 6 years ago
by
Dan Crevier
2
Comments
I previously blogged about the pattern we used in our WPF application to separate business logic from the presentation, making the business logic view and data models highly unit testable. Now that I'm working on Asp.net code for Live Folders , we've...
Page 1 of 1 (4 items)