Exemplo n.º 1
0
        public SOSService(ICustomerAgreement customerAgreement, IECAPIManagerRepository ecAPIManagerRepository, ILog logger)
        {
            this.custAgreement = customerAgreement;
            this.ecAPIManager  = ecAPIManagerRepository;
            log = logger;
            //log.Info(string.Format("Carla Connection ip=[0} port={1}", Properties.Settings.Default.Ip7913, Properties.Settings.Default.port7913));
            var bs = new Bootstrapper();

            bs.Initialize();
        }
Exemplo n.º 2
0
        public void init()
        {
            //Arrange
            string ip      = "192.168.16.98";
            int    port    = 1074;
            string logfile = "test.log";

            custAgreement = new CustomerAgreementRepo();
            ecAPIManager  = new ECAPIManagerRepository(ip, port, logfile);
            log           = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Inject repository
        /// </summary>
        /// <param name="_repository">IPSAPIManagerRepository</param>
        public NCController(IECAPIManagerRepository _repository)
        {
            if (_repository == null)
            {
                throw new ArgumentNullException("WebAPIManager Repository exception");
            }

            this.ECAPIManagerRepository = _repository;

            var bs = new Bootstrapper();

            bs.Initialize();
            Log.LogInfo("NordCar conrtoller Created");
        }
Exemplo n.º 4
0
        /// <summary>
        /// Inject repository
        /// </summary>
        /// <param name="_repository">IPSAPIManagerRepository</param>
        public PromotionController(IECAPIManagerRepository _repository)
        {
            if (_repository == null)
            {
                throw new ArgumentNullException("ECAPIManagerManager Repository exception");
            }

            this.ECAPIManagerRepository = _repository;

            var bs = new Bootstrapper();

            bs.Initialize();

            Log.LogInfo("PromotionController created");
        }