Skip to content

Instantly share code, notes, and snippets.

View pheiberg's full-sized avatar

Peter Heiberg pheiberg

View GitHub Profile
@pheiberg
pheiberg / ExampleRegistry.cs
Created April 21, 2011 13:56
Extensions for StructureMap registrations
using StructureMap;
using StructureMap.Configuration.DSL;
public class ExampleRegistry: Registry
{
public ExampleRegistry()
{
For<Interface>().Use<Concrete>()
.Ctor<string>("connectionString").EqualToConnectionString("connectionStringKey");
}