Skip to content

Instantly share code, notes, and snippets.

@bm2yogi
bm2yogi / AccountController.cs
Created September 19, 2014 20:57
This is the AccountController class that comes out-of-the-box in a .NET MVC4 project. How many violations of good software design principles can you find? What would you do to make this class unit testable?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Transactions;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using DotNetOpenAuth.AspNet;
using Microsoft.Web.WebPages.OAuth;
using WebMatrix.WebData;
@bm2yogi
bm2yogi / SassMeister-input-HTML.html
Created March 30, 2014 00:42
Generated by SassMeister.com.
<html>
<body>
<div class="container">
<div class="header">
<div class="brand">
HabitCrackers
</div></div>
</div>
</body>
</html>