Matt_TCF

Stories submitted by Matt_TCF

Using SpecsFor.Mvc - Dealing with Authentication(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 1 month, 3 days ago

This is part four of my series on using SpecsFor.Mvc to write awesome automated acceptance tests for your ASP.NET MVC application. In this post, I’ll show you how to create an authentication handler that will be used by SpecsFor.Mvc to authenticate with your app prior to executing each spec. read more...

add a comment |category: |Views: 4

tags: another

Using SpecsFor.Mvc - Reading Data(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 1 month, 8 days ago

This is part three of my series on Using SpecsFor.Mvc to write awesome automated acceptance tests for your ASP.NET MVC application. In this post, I’ll show you how to create tests that verify expected data is displayed on a page by leveraging the MvcDisplayTemplates project with SpecsFor.Mvc. read more...

add a comment |category: |Views: 5

tags: another

Using SpecsFor.Mvc - Navigation and Form Submission(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 1 month, 28 days ago

This is part two of my series on Using SpecsFor.Mvc to write awesome automated acceptance tests for your ASP.NET MVC application. In this post, we’ll look at navigating around your app from SpecsFor.Mvc and at how to locate, populate, and submit forms. read more...

add a comment |category: |Views: 0

tags: another

A very simple Jasmine runner for ASP.NET Applications(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 2 months, 2 days ago

I made a very simple Jasmine test runner using ASP.NET WebPages. It automatically detects and executes your specs. read more...

add a comment |category: |Views: 7

tags: another

Using SpecsFor.Mvc - Introduction(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 2 months, 4 days ago

SpecsFor.Mvc is a framework for creating automated acceptance tests, powered by borwser automation, for ASP.NET MVC applications. Unlike lower-level tools such as Selenium or Watin, SpecsFor.Mvc is strongly-typed and enables you to write unit-test like specs that will be translated into fullly automated tests through Internet Explorer or Firefox. read more...

add a comment |category: |Views: 2

tags: another

ASP.NET MVC 3, Razor-C#, and VB.NET WebForms - ActionLink, RenderParti(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 2 months, 19 days ago

Today I’m going to show you how to use MVC helper methods in your ASP.NET WebForms markup. Why would you want to do this? Maybe you're in the same boat I'm in, working on a project that has an extensive investment in WebForms, and a wholesale migration to MVC is just not possible. With a little bit of black magic, I'll show you how to make strongly-typed action links, render partial Razor views, and render complete MVC actions within a standard ASP.NET WebForms application. read more...

add a comment |category: |Views: 88

tags: another

Quick-and-Easy Database Integration Tests with SpecsFor(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 2 months, 21 days ago

SpecsFor makes it very easy to bolt on your own conventions, create your own base classes, and extend its behavior to support your specific testing needs. I’m working on a project that’s built on LINQ to SQL, and I wanted to start creating integration tests around our stored procedures and views. Here’s the base class I made to handle establishing a database connection, loading in “seed data,” and then cleaning up after each set of specs once they’re finished. read more...

add a comment |category: |Views: 7

tags: another

ASP.NET MVC 3, Razor-C#, and VB.NET WebForms - Part 2(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 2 months, 26 days ago

Do you want to develop using C# and the latest ASP.NET MVC framework, but are stuck maintaining a legacy VB.NET WebForms application? There's hope! In the second part of this series, you'll see how you can write normal C# MVC code, including using Razor views, that can be consumed by a VB.NET WebForms application and how to leverage the existing VB.NET master pages. read more...

add a comment |category: |Views: 92

tags: another

ASP.NET MVC 3, Razor-C#, and VB.NET WebForms - A Tale of Black Magic V(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 3 months, 12 days ago

What do you get when you mix a legacy VB.NET WebForms application, ASP.NET MVC, and Razor views that are written in C#? If you said “Pain!” you are quite right. But what you also get is the ability to leverage your existing investment in VB.NET WebForms while crafting new code in ASP.NET MVC Razory-C# goodness. In this series of posts, I’m going to tell you how you, too, can concoct a wicked brew that will enable you to do crazy things, such as creating Razor views in C# that utilize VB.NET WebForms master pages, or how you can render MVC action methods from within WebForms markup. read more...

1 comment |category: |Views: 163

tags: another

Using Git with Subversion(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 4 months, 8 days ago

Do you love Git? Are you working on a project that’s using Subversion? Well, did you know that Git actually integrates quite nicely with Subversion right out of the box? I’ll show you what you need to know to get started with Git and Subversion, and I’ll show you the workflow I use for keeping my work in sync with everyone else on my team. read more...

1 comment |category: |Views: 26

tags: another

AppHarbor Rocks. Seriously.(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 4 months, 15 days ago

You kids and your applications today. Back in my day, we published our applications like real men! We didn’t have these fancy, cloud-based services like Heroku and AppHarbor. We couldn’t just type ‘git push origin’ and have our application magically show up online, ready to rock and roll. We used to dread deploying our code because of all the hoops we would have to jump through. Oh, how times have changed! read more...

add a comment |category: |Views: 7

tags: another

Status Update on SpecsFor.Mvc(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 4 months, 26 days ago

SpecsFor.Mvc is an integration testing framework for ASP.NET MVC applications. It enables you to write integration tests that are strongly-typed, refactor-friendly, and that run under the testing framework of your choice, all while leveraging your existing unit test writing skills. SpecsFor.Mvc is a work-in-progress, so please take a moment to give me some feedback on how the API is shaping up. read more...

add a comment |category: |Views: 5

tags: another

Inversion of Control Containers - Things You Should Know(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 5 months, 5 days ago

Think you're a senior developer? Not yet senior, but interested in taking the next step? Today’s topic in the "Things Every Senior .NET Developer Should Know" series will cover Dependency Injection, Inversion of Control containers, and my favorite Inversion of Control container, StructureMap. read more...

3 comments |category: |Views: 367

tags: another

SpecsFor.com Launched, SpecsFor 2.2 Released!(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 5 months, 16 days ago

I’m pleased to announce that SpecsFor.com is now live. I’ve also shipped a new version of SpecsFor that simplifies the painful task of creating multiple mocks of the same type for injection into IEnumerable parameters. read more...

8 comments |category: |Views: 116

tags: another

SOLID - Things Every Senior .NET Developer Should Know, Part 2(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 5 months, 21 days ago

Think you’re a senior .NET developer? Then you should already be familiar with SOLID, a set of five principles originally introduced by Robert Martin. These principles will help guide you towards better, more maintainable code and may help you have more fun at the same time. In this article, I’ll cover the Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles. read more...

add a comment |category: |Views: 119

tags: another

NHibernate Session-Per-Method-Call via StructureMap Nested Containers(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 5 months, 22 days ago

There are several documented approaches you can follow to implement the session-per-method-call pattern with NHibernate and StructureMap. The majority of these approaches fail to leverage the full capabilities of StrurctureMap and are therefore more complex than they need to be. In this short post, I’ll show you how you can implement a simpler solution by utilizing StructureMap’s nested containers. read more...

2 comments |category: |Views: 69

tags: another