• Unit Test Private Methods in Visual Studio

    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 [...]

  • ASP.NET, ASP.NET MVC

    Posted on July 1st, 2008

    Written by Emad Ibrahim

    Tags

    , ,

    ASP.NET MVC & Threads

    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 (var bgw = new BackgroundWorker()) { bgw.DoWork += new DoWorkEventHandler(delegate { [...]

  • ASP.NET MVC

    Posted on May 30th, 2008

    Written by Emad Ibrahim

    Tags

    Upgrading Yonkly to ASP.NET MVC Preview 3

    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 [...]

  • ASP.NET MVC, Startup

    Posted on May 29th, 2008

    Written by Emad Ibrahim

    Tags

    , , , ,

    Yonkly Source Code

    [UPDATE] Source code is now available in codeplex at http://www.codeplex.com/yonkly 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 [...]

  • ASP.NET, ASP.NET MVC

    Posted on April 13th, 2008

    Written by Emad Ibrahim

    Tags

    , , , , , , ,

    CMAP Code Camp 2008 Spring Edition

    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 cooperate. Thankfully, I [...]

  • Older Posts Yeah! There are more posts, check them out.

    Newer Posts Yeah! There are more posts, check them out.