Skip to content

Instantly share code, notes, and snippets.

View mckn's full-sized avatar

Marcus Andersson mckn

  • Stockholm, Sweden
View GitHub Profile
@mckn
mckn / WindsorDependencyResolver.cs
Created June 15, 2012 12:47
ASP.NET WebApi RC - Castle Windsor Integration
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http.Dependencies;
using Castle.Windsor;
namespace Castle.Windsor.AspNet.WebApi
{
public class WindsorDependencyResolver : IDependencyResolver
{
@mckn
mckn / SpecFlowTags.cs
Created December 12, 2011 19:45
Example on how you could implement a @wip tag in specflow
namespace SpecFlow.Extensions
{
[Binding]
public class Tags
{
[AfterScenario("wip")]
public static void Wip()
{
if (ScenarioContext.Current.TestError == null || ScenarioContext.Current.TestError is SuccessException)
{