Sign In
Francis K. Cheung
The journey of an agile programmer...
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
CAB
DI
IoC
mock
PLK
SharePoint unit test Typemock mock
TDD
WPF
Archive
Archives
January 2012
(1)
December 2011
(2)
June 2011
(2)
October 2010
(1)
February 2010
(1)
June 2009
(6)
January 2009
(2)
December 2008
(2)
November 2008
(1)
August 2008
(1)
July 2008
(2)
June 2008
(2)
May 2008
(3)
February 2008
(1)
January 2008
(2)
October 2007
(1)
January 2007
(3)
June 2006
(1)
April 2006
(10)
MSDN Blogs
>
Francis K. Cheung
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Francis K. Cheung
Running Windows Phone Unit Tests via MSBuild
Posted
1 month ago
by
fcheung
1
Comments
I’m a big fan of TDD and continuous integration, so when I first started development on Windows Phone 7, I quickly found Jeff Wilcox’s Silverlight Unit Test Framework . This unit testing framework provides a nice way to write MSTest style unit tests and...
Francis K. Cheung
Tombstoning in Windows Phone 7.5
Posted
2 months ago
by
fcheung
0
Comments
There is quite a bit written on how to handle tombstoning on a Windows Phone. Most of the guidance is for code-behind developers. Here is an MSDN article ( How to: Preserve and Restore Page State for Windows Phone ) that shows how to use the Page’s OnNavigatedTo...
Francis K. Cheung
Case Study: TailSpin Windows Phone Survey Application
Posted
2 months ago
by
fcheung
0
Comments
We are just about to release an update to the Windows Phone 7 Developer Guide that p&p shipped one year ago. The updated guidance takes the same scenario but updates the phone client application leveraging features in the Windows Phone 7.1 OS Mango...
Francis K. Cheung
Composite Services Guidance: External Routing Configuration sample
Posted
8 months ago
by
fcheung
3
Comments
Let me give you a little background on this sample. If you look at the WCF Routing Service , you can quickly and easily configure a router with endpoints and message filters in the web.config. This is a great way to set up context based routing. You can...
Francis K. Cheung
Composite Services Guidance–Release Candidate
Posted
8 months ago
by
fcheung
2
Comments
Yesterday we uploaded a release candidate drop of our Composite Services Guidance to CodePlex. This should be very close to our final release. The following is just a few items included in the RC drop that you may not have seen before: Enhancements to...
Francis K. Cheung
Composite Services Guidance - CTP1
Posted
over 2 years ago
by
fcheung
0
Comments
Yesterday we shipped the first public drop of our guidance for building composite services. This guidance includes several SOA pattern implementations such as Policy Centralization but I’m most excited about the work we’ve done around capturing business...
Francis K. Cheung
Integrating JavaScript Unit Tests with Continuous Integration
Posted
over 2 years ago
by
fcheung
2
Comments
One of the main stories for the Web Client Developer Guidance project was to learn how to manage the JavaScript code that is required in modern web applications. This includes how to organize JavaScript, how to load it on a page (especially a problem...
Francis K. Cheung
SPG Continuous Integration builds not run on instance of SharePoint
Posted
over 3 years ago
by
fcheung
2
Comments
Our Continuous Integration builds are run on a build server that has the necessary SharePoint assemblies, but with no installed instance of SharePoint. Licensing issues aside, this causes an interesting problem when unit tests are developed on dev boxes...
Francis K. Cheung
Using Typemock Isolator for Integration Tests
Posted
over 3 years ago
by
fcheung
1
Comments
Yeah, I know. Typemock Isolator is great for unit testing against API’s that are hard to mock, but this last iteration, I found a new use for Typemock Isolator. I worked with our test team to develop a set of integration tests that are run by MSTest and...
Francis K. Cheung
What happened to my SPContext?
Posted
over 3 years ago
by
fcheung
2
Comments
This last iteration, we ran an interesting issue when services that we request through the SharePointServiceLocator depend on SPContext.Current. This seemed like a reasonable dependency assumption. We consume these services in feature receivers. They...
Francis K. Cheung
Stack Overflow when building up SiteMap structure
Posted
over 3 years ago
by
fcheung
2
Comments
In iteration 10, we wrote HierarchicalConfigSiteMapProvider that builds up a tree of sitemap nodes based on xml retrieved from the hierarchical ConfigManager. Being a newbie with SiteMapProviders, I overwrote BuildSiteMap calling a simple recursive method...
Francis K. Cheung
Granularity of SharePoint Features and Solutions
Posted
over 3 years ago
by
fcheung
1
Comments
In our SPG v1 guidance we discussed packaging site elements into features. This is particularly important if you are using the Visual Studio extensions for WSS. We found that whenever you add a site element into a VSeWSS project, a new feature is created...
Francis K. Cheung
SPG v2 Iteration 10 Drop
Posted
over 3 years ago
by
fcheung
1
Comments
Iteration 10 is complete and the drop can be downloaded here . In iteration 10 we mainly concentrated on refactoring, code cleanup and reusable assets. We will continue refactoring and scrubbing the code in the remaining iterations but please take a look...
Francis K. Cheung
SharePoint Development Guidance v2
Posted
over 3 years ago
by
fcheung
0
Comments
We are now full speed a head working on v2 of the p&p SharePoint Guidance. Version 1 focused on issues common to both WSS and MOSS development like unit testing, deployment, and upgrading. For version 2, we’re looking at the following topics: Performance...
Francis K. Cheung
Sometimes Typemock Isolator can be too powerful
Posted
over 3 years ago
by
fcheung
2
Comments
A colleague made the comment regarding Typemock Isolator: “but be aware that having such a powerful mocking facility may reduce the effectiveness of your unit tests as design aids”. I’ve used Typemock Isolator and it allows you to test your business logic...
Francis K. Cheung
Trying to use Unit Tests as Integration Tests
Posted
over 4 years ago
by
fcheung
0
Comments
We shipped v1 of the SharePoint Guidance with a good set of unit tests. These unit tests paid for themselves several times over each time we refactored the code base. As an agile developer, this made me very happy. After we shipped, my project manager...
Francis K. Cheung
SHIPPED!!! SharePoint Guidance
Posted
over 4 years ago
by
fcheung
1
Comments
We’ve completed version 1 of the patterns & practices SharePoint Guidance . The major stories we covered in this release are: Architectural decisions about patterns, feature factoring, and packaging. Design tradeoffs for common decisions many developers...
Francis K. Cheung
Typemock ships Isolator for SharePoint
Posted
over 4 years ago
by
fcheung
0
Comments
Our friends at Typemock have made it much more affordable to unit test SharePoint applications. With an introductory price of $99, they have shipped Isolator for SharePoint which is basically the same the full Isolator product except that it will only...
Francis K. Cheung
Unit Testing SharePoint 2007 Applications
Posted
over 4 years ago
by
fcheung
10
Comments
When developing SharePoint applications, it is common to develop custom: ASP.NET Web Forms WebParts Event Receivers Workflow coding activities One of the first things we noticed when trying to unit test our business logic is that our code will heavily...
Francis K. Cheung
SHIPPED!!! Composite Application Guidance for WPF June 2008
Posted
over 4 years ago
by
fcheung
1
Comments
Here is the landing page: http://msdn.microsoft.com/en-us/library/cc707819.aspx Here is the download page: http://www.microsoft.com/downloads/details.aspx?FamilyId=6DD3D0C1-D5B4-453B-B827-98E162E1BD8D&displaylang=en I didn't notice how much hard work...
Francis K. Cheung
ActiveAware Views and Commands
Posted
over 4 years ago
by
fcheung
0
Comments
It occurred to me after a recent advisory board call that we haven't done a good job of communicating the scenarios that prompted the development of ActiveAware views and commands. Let me describe this functionality in terms of the ability to "Save...
Francis K. Cheung
Poor man's UI Composition
Posted
over 4 years ago
by
fcheung
1
Comments
I've consistently pushed for simplicity on the Prism project. This was evident when we worked on our first feature: UI composition (View from one module is composed of view(s) from other module(s)). In CAB, we developed Workspaces to provide this functionality...
Francis K. Cheung
Decoupled Communication with Prism (Event Aggregation)
Posted
over 4 years ago
by
fcheung
5
Comments
In my previous post, I discussed commanding and how you can hook up invokers (e.g. buttons and menu items), global CompositeCommands, and module level command instances. If you need the sending of a message to be initiated by a user gesture such as a...
Francis K. Cheung
Decoupled Communication with Prism (Commanding)
Posted
over 4 years ago
by
fcheung
6
Comments
WPF provides RoutedCommand which is great at connecting command invokers such as menu items and buttons with command handlers that are associated with the current item in the visual tree that has keyboard focus. However we had several scenarios that Prism...
Francis K. Cheung
Decoupled Communication with Prism (Shared Services)
Posted
over 4 years ago
by
fcheung
4
Comments
One common method of cross module communication is through shared services. Let's say our application is composed of a shell application and various module assemblies. Our shell app provides several core services such as logging, authentication, and service...
Page 1 of 2 (44 items)
1
2