using System.Web.Http.Controllers; using Sony.ChartBot.Repository; using Sony.ChartBot.Tasks; using StructureMap; namespace Sony.ChartBot.Client.DependencyResolution { public class DefaultRegistry : Registry { public DefaultRegistry() { Scan(p => { p.TheCallingAssembly(); p.WithDefaultConventions(); p.AddAllTypesOf(); p.AssemblyContainingType(); p.AddAllTypesOf(); }); For().Use(new CountryRepository()).Singleton(); } } }