Articles : Page 1 of 3
- Filter:
- UnitTesting
-
Abstracting away issues of HttpContext from your ASP.NET MVC controllers
Feb 1203I've noticed that I write software in one of three modes: For myself: Shortcuts, less testing, not well-factored. For myself but in public: Mostly POP Forums, which I try to avoid letting it suck since others will use it and see the code. For sharing: Any day job or gig where others will use or maintain your code. You don't want to unleash crapsauce on others. I have to admit that second case isn't the most clean of endeavors. While I'm generally happy with the forum app and the feedba...
-
ASP.NET MVC + Selenium + IISExpress
Dec 1122The goal of this blog entry is to explain how you can create integration tests for ASP.NET MVC applications by using a combination of Selenium WebDriver and IISExpress. Integration tests are useful when you want to test an entire user story. For example, you might want to test whether a user can successfully add an item to a shopping cart. Adding an item to a shopping cart might require the execution of C# code, database code, and JavaScript code. Using an integration test, you can verify t...
-
UGIALT.net conf sessions are published
Dec 1111The voting for the UGIALT.net conference just ended, and just in time for the opening of the registration at noon we published, on the new web site the list of the 19 sessions chosen by the more than 180 voters: Perché a fare i preventivi facciamo così schifo? (Cristiano Rastelli) DDD Brutto Sporco e Cattivo (Alberto Brandolini) Organize your chickens: NuGet for the enterprise (Xavier Decoster) SignalR. Code, not toothpaste. Using SignalR for realtime client/server communication (Maarten ...
-
Professional ASP.NET MVC 3 is available!
Aug 1108I hate code samples in technical books! No seriously, this is bile I’m not afraid to give a permalink to (nor am I afraid to end a sentence with a preposition, so there!). Even the shortest code samples are a pain to type in. And if they show anything reasonably interesting, they’re probably too long to type in. Of course, nobody actually types in the sample code, they grab the code from the companion CD (blech!) or download zip files containing the code from the companion website. With ...
-
Creating a Custom ASP.NET MVC Project Template
Jun 1106When you create a new ASP.NET MVC 3 project, the new project wizard dialog contains several options for different MVC project templates: Empty Internet Application Intranet Application (new in the April 2011 Tools update) There’s a lot of white space in that dialog. To many of you, all that unsullied territory smells like opportunity. When I talk about this dialog, I go to great pains to tell folks that, yes!, you too can extend that dialog and add your own project templates in there...
-
Lessons from rewriting POP Forums for MVC, open source-like
Mar 1110It has been a ton of work, interrupted over the last two years by unemployment, moving, a baby, failing to sell houses and other life events, but it's really exciting to see POP Forums v9 coming together. I'm not even sure when I decided to really commit to it as an open source project, but working on the same team as the CodePlex folks probably had something to do with it. Moving along the roadmap I set for myself, the app is now running on a quasi-production site... we launched MouseZoom las...
-
Introducing RouteMagic
Jan 1130Over the past couple of years, I’ve written several blog posts on ASP.NET Routing where I provided various extensions to routing. Typically such blog posts included a zip download of the binaries and source code to allow readers to easily try out the code. But that’s always been a real pain and most people don’t bother. But now, there’s a better way to share such code. Moving forward, I’ll be using NuGet packages as a means of sharing my code samples. In the case of my routing extensions, ...
-
Are you Mocking Me?
Jan 1115Jimmy has had a couple posts (mocks, mocks, and less mocks) that prompted Derick to post this on his experience with tests Id like to add my thoughts to mix. First, let me say Im not offering an answer to Dericks question (sorry Derick), simply some ideas to consider. If they help you, great. If not, please join the mix. Not All Tests are created equal If I told you there are only X types of programs you can write to solve any problem and they could only be created a certain way, etc. youd ...
-
Link Rollup: New Documentation and Tutorials from Web Platform and Tools
Jan 1114Lots of cool stuff was released yesterday that I mentioned in the post ASP.NET MVC3, WebMatrix, NuGet, IIS Express and Orchard released - The Microsoft January Web Release in Context. The Web Platform Tools Content Team has been working hard on new content and tutorials to get you up to date on all this fun new stuff. Here's a link rollup from Wade's documentation team. Congratulations to Mike Pope, Tim Teebken, Rick Anderson, Tim Ammann, Keith Newman, Erik Reitan and Tom Dykstra on a gre...
-
Integrating JavaScript Unit Tests with Visual Studio
Dec 1020Modern ASP.NET web applications take full advantage of client-side JavaScript to provide better interactivity and responsiveness. If you are building an ASP.NET application in the right way, you quickly end up with lots and lots of JavaScript code. When writing server code, you should be writing unit tests. One big advantage of unit tests is that they provide you with a safety net that enable you to safely modify your existing code – for example, fix bugs, add new features, and make performa...

