public static void Register(IUnityContainer container)
        {
            DataAccessLayer.Bootstraper.Register(container);
            Logger.Bootstraper.Register(container);
            AutomapperConfig.RegisterMappings();

            container.RegisterType <IDocumentManagementService, DocumentManagementService>();
            container.RegisterType <IDictionaryService, DictionaryService>();
            container.RegisterType <IAccountService, AccountService>();
        }
Пример #2
0
        public static void Register(IUnityContainer container)
        {
            DictionariesClient.Bootsrap.Register(container);

            container
            .RegisterType <IRepositoryAsync <Entities.Models.Collateral>, Repository <Entities.Models.Collateral> >()
            .RegisterType <IRepositoryAsync <Entities.Models.CollateralAgreement>, Repository <Entities.Models.CollateralAgreement> >()
            .RegisterType <IRepositoryAsync <Entities.Models.CreditAgreement>, Repository <Entities.Models.CreditAgreement> >()
            .RegisterType <ICollateralService, CollateralService>()
            .RegisterType <ICollateralAgreementService, CollateralAgreementService>()
            .RegisterType <IDictionaryService, DictionaryService>()
            .RegisterType <ICreditAgreementService, CreditAgreementService>();

            AutomapperConfig.RegisterMappings();
        }