I am working on a feature that will let me import twitter messages to yonkly and wanted to write a test for it. The method is private and I couldn’t get the unit test to see it. I also didn’t want to use the private accessor class generate by Visual Studio because I was mocking […]
Entries Categorized as 'asp.net mvc'
Unit Test Private Methods in Visual Studio
July 9, 2008
ASP.NET MVC & Threads
July 1, 2008
I have a method that handles sending of emails. I wrote it so that it would run asynchronously, so that it won’t slow down the web app. It looks like this:
protected static void SendMail(string to, string subject, string body)
{
try
{
using […]
Upgrading Yonkly to ASP.NET MVC Preview 3
May 30, 2008
I just spent this morning upgrading the Yonkly code to work with the newly released ASP.NET MVC Framework Preview 3. I thought I would document what I did here, so that it might help others trying to upgrade their projects. Note: I haven’t deployed the upgraded version to yonkly.com but released the source code.
Setup
Yonkly was […]
Yonkly Source Code
May 29, 2008
I apologize for the delay of releasing the source code for Yonkly (the twitter clone).
The code is still not 100% ready but I have received so many requests for the source code and figured it is better to put something online until I clean it up than wait until I reach perfection (a moving […]
CMAP Code Camp 2008 Spring Edition
April 13, 2008
Yesterday, I gave a talk at CMAP Code Camp about the asp.net mvc framework and AJAX using JQuery. This is my first time speaking, so I was a little nervous. I think I did ok but I can’t really tell. Of course, the talk didn’t go as planned, because Visual Studio didn’t […]
Yonkly - Open Source Twitter
April 11, 2008
[update: Yonkly source code is now public]
Asp.net MVC framework rocks. I wanted to play with it more and decided why not build an open source twitter. Unfortunately, I couldn’t come up with a better name for it that had an available domain so Yonkly it is. Come to think of it Yonkly […]
Tricky Asp.net MVC URL Rewriting
April 10, 2008
I am working on an asp.net mvc application and I wanted to make the user’s main page (profile) be www.domain.com/username. This is a problem because the routing engine in MVC treats the first item after the domain as a controller. Ofcourse I could do a {*catchall} and do my own parsing but why re-invent the […]
Unit Test Linq to Sql in ASP.Net MVC with Moq
April 4, 2008
I have just spent the entire day playing with Moq to unit test an asp.net mvc application I am working with. All I wanted to do is test a “create” method that simply adds a record to the database. So here it goes.
1. I created a Mock Http context to be used by my controller. […]
Posted in
content rss
