Example #1
0
        private static void RegisterServices(Container container)
        {
            container.Register <IBusinessMatcherFactory>(
                () => { return(SingletonBusinessMatcherFactory.GetOrCreateInstance()); },
                Lifestyle.Singleton);

            container.Register <IBusinessDataRepository, BusinessDataRepository>(Lifestyle.Singleton);

            container.Register <IBusinessRecordsService, BusinessRecordsService>(Lifestyle.Transient);

            container.Verify();
        }
Example #2
0
 public void Setup()
 {
     this.target = SingletonBusinessMatcherFactory.GetOrCreateInstance();
 }