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