Example #1
0
        public BusinessManagerBase()
        {
            var mapperConfiguration = new MapperConfiguration(cfg =>
            {
                RequestMessagesToEntities.Map(cfg);
                EntitiesToResponseMessages.Map(cfg);
            });

            Mapper = mapperConfiguration.CreateMapper();
        }
Example #2
0
        public BusinessEngineBase()
        {
            var mapperConfiguration = new MapperConfiguration(cfg =>
            {
                RequestMessagesToEntities.Map(cfg);
                EntitiesToResponseMessages.Map(cfg);
            });

            Mapper = mapperConfiguration.CreateMapper();
            ConfigurationHelper = DependencyContainer.Resolve <IConfigurationHelper>();
            _logger             = (ILogger)DependencyContainer.Resolve(typeof(ILogger));
            //TODO: DI Fremework eklendikten sonra bu fiedler initalize edilecek.
        }
Example #3
0
        public BusinessEngineBase()
        {
            //TODO: yuardaki field 'lar initialize edilecek

            //Auto Mapper configurastonlarını yükledik
            var mapperConfiguraiton = new MapperConfiguration(cfg =>
            {
                RequestMessagesToEntities.Map(cfg);
                EntitiesToResponseMessages.Map(cfg);
            });

            Mapper = mapperConfiguraiton.CreateMapper();


            ConfigurationHelper = DependencyContainer.Resolve <IConfigurationHelper>();
            _logger             = (ILogger)DependencyContainer.Resolve(typeof(ILogger));
        }