I hope the answer to that question is a very loud, emphatic, “YES!” I like gulp! I want to use it! And I’ll confess up front that I’m still very green with gulp. I know there are a lot of things it can probably do that I’m not taking advantage of. But, I feel like…
try-catch-FAIL
Category: <span>MVC</span>
Encapsulating Query Logic in MVC Apps Without the Repository Pattern
One of the most common questions I get when people see a video or presentation about how I build MVC applications is, “Why don’t you use the repository pattern?” There are a lot of reasons not to use the repository pattern, and they’ve been well-covered by others. But, one valid benefit they provide is encapsulation…
Using Inversion of Control with the Default ASP.NET MVC App Template
I routinely get questions about using an IoC container, like StructureMap, with ASP.NET Identity, particularly with the way it’s set up in the default ASP.NET MVC project template. In this post, I’ll show you the quickest way to IoC-enable the starter app. [more] First, fair warning: the default MVC app template is rough. I would…
Passing Data to Angular from ASP.NET MVC Views
Angular is a great tool for enriching an ASP.NET MVC application, but you must bridge the gap between your client-side code and your server-side code in order to use it effectively. In this post, I’ll show you a couple of ways that you can pass data from your Razor views to your AngularJS components. [more]…
Introducing SpecsFor Helpers!
SpecsFor<Web> Helpers will help you write cleaner, easier-to-read (and maintain!) specs for your ASP.NET MVC applications. It’s the latest addition to the SpecsFor family, and the first of the Helpers line that I’m working on. Read on to see what it can do for you and your team! [more] I suppose this really doesn’t qualify…
SpecsFor.Mvc 4.1.0 Released!
Hot on the heels of SpecsFor.Mvc 4.0 comes the 4.1.0 release! This is a minor update, but it adds a very-useful capability. [more] Selenium WebDriver has always had the ability to wait for certain events to occur, such as a particular element becoming “visible” so that it could be interacted with. Unfortunately, the code for…
SpecsFor.Mvc 4.0 Released!
The final build of SpecsFor.Mvc 4.0 is live on NuGet. Here’s a recap of what’s changed. [more] Breaking Change: SpecsFor.Mvc is now built against ASP.NET MVC 5.2. Remember, your web project does not have to be on 5.2 in order to use SpecsFor.Mvc, just your spec project. MvcWebApp.BrowserDriver now returns a RemoteWebDriver rather than just…
SpecsFor.Mvc 4.0 Coming Soon!
Hot off the NuGet press, it’s the first preview release of SpecsFor.Mvc 4.0! This release introduces more configurability, exposes more state for your tests to examine, and (hopefully) greatly improves the initial setup experience by removing a lot of frustration. [more] Here’s a quick rundown on what’s change. FluentField<T> now supports asserting off its value…
Random Link Roundup–10/17/2014
It’s been a while since I’ve posted a batch of links, mostly due to me catching pneumonia! So, I have a ton of stuff for you today! Oh, and it’s late! [more] I can tell I’m spending the bulk of my time in the Angular world these days… Angular JS "Why does there have to…
Random Link Roundup–9/25/2014
It’s the last Friday of September. Time for another cat pic and some links! [more] I’ve been working on some simplified ASP.NET Identity samples lately, something that shows how cleanly it can be implemented if you remove some of the bad design and noise that the VS project template adds. These two posts were very…