Beispiel #1
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="signatureService"></param>
 /// <param name="policyManager"></param>
 public SignatureManager(
     ISignatureService signatureService,
     IPolicyManager policyManager)
 {
     _signatureService = signatureService;
     _policyManager    = policyManager;
 }
Beispiel #2
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="policyManager"></param>
 /// <param name="suspendedSaleService"></param>
 /// <param name="resourceManager"></param>
 /// <param name="saleHeadManager"></param>
 /// <param name="saleManager"></param>
 /// <param name="saleLineManager"></param>
 /// <param name="loginManager"></param>
 /// <param name="customerManager"></param>
 /// <param name="reasonService"></param>
 /// <param name="paymentManager"></param>
 /// <param name="receiptManager"></param>
 /// <param name="prepayManager"></param>
 /// <param name="mainManager"></param>
 public SuspendedSaleManager(IPolicyManager policyManager,
                             ISuspendedSaleService suspendedSaleService,
                             IApiResourceManager resourceManager,
                             ISaleHeadManager saleHeadManager,
                             ISaleManager saleManager,
                             ISaleLineManager saleLineManager,
                             ILoginManager loginManager,
                             ICustomerManager customerManager,
                             IReasonService reasonService,
                             IPaymentManager paymentManager,
                             IReceiptManager receiptManager, IPrepayManager prepayManager,
                             IMainManager mainManager)
 {
     _policyManager        = policyManager;
     _suspendedSaleService = suspendedSaleService;
     _resourceManager      = resourceManager;
     _saleHeadManager      = saleHeadManager;
     _saleManager          = saleManager;
     _saleLineManager      = saleLineManager;
     _loginManager         = loginManager;
     _customerManager      = customerManager;
     _reasonService        = reasonService;
     _paymentManager       = paymentManager;
     _receiptManager       = receiptManager;
     _prepayManager        = prepayManager;
     _mainManager          = mainManager;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="policyManager"></param>
 /// <param name="teSystemManager"></param>
 /// <param name="taxExemptService"></param>
 public PurchaseItemManager(IPolicyManager policyManager,
                            ITeSystemManager teSystemManager, ITaxExemptService taxExemptService)
 {
     _policyManager    = policyManager;
     _teSystemManager  = teSystemManager;
     _taxExemptService = taxExemptService;
 }
Beispiel #4
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="wexService"></param>
 /// <param name="resourceManager"></param>
 /// <param name="policyManager"></param>
 /// <param name="encryptDecryptManager"></param>
 public WexManager(IWexService wexService, IApiResourceManager resourceManager, IPolicyManager policyManager, IEncryptDecryptUtilityManager encryptDecryptManager)
 {
     _wexService            = wexService;
     _resourceManager       = resourceManager;
     _policyManager         = policyManager;
     _encryptDecryptManager = encryptDecryptManager;
 }
Beispiel #5
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="saleService"></param>
 /// <param name="customerManager"></param>
 /// <param name="policyManager"></param>
 public SaleHeadManager(ISaleService saleService,
                        ICustomerManager customerManager,
                        IPolicyManager policyManager)
 {
     _saleService     = saleService;
     _customerManager = customerManager;
     _policyManager   = policyManager;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="fuelService"></param>
 /// <param name="policyManager"></param>
 /// <param name="loginManager"></param>
 /// <param name="saleLineManager"></param>
 public PayAtPumpManager(IFuelService fuelService, IPolicyManager policyManager,
                         ILoginManager loginManager, ISaleLineManager saleLineManager)
 {
     _fuelService     = fuelService;
     _policyManager   = policyManager;
     _loginManager    = loginManager;
     _saleLineManager = saleLineManager;
 }
Beispiel #7
0
 public RedisManager(
     IConfiguration configuration,
     IPolicyManager policyManager)
 {
     Configuration     = configuration;
     m_RedisConnection = new Lazy <ConnectionMultiplexer>(() => OpenConnection());
     m_PolicyManager   = policyManager;
 }
 public EditWindow()
 {
     InitializeComponent();
     policyManager  = new PolicyManager();
     quoteManager   = new QuoteManager();
     countryManager = new CountryManager();
     countriesList  = countryManager.GetCountries();
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="givexManager"></param>
 /// <param name="resourceManager"></param>
 /// <param name="policyManager"></param>
 /// <param name="saleManager"></param>
 public GivexController(IGivexManager givexManager, IApiResourceManager resourceManager,
                        IPolicyManager policyManager, ISaleManager saleManager)
 {
     _givexManager    = givexManager;
     _resourceManager = resourceManager;
     _policyManager   = policyManager;
     _saleManager     = saleManager;
 }
Beispiel #10
0
 public ExternalTaskTopicManager(string workerId, ExternalTaskService externalTaskService,
                                 ExternalTaskTopicManagerInfo taskManagerInfo, IBackoffStrategy backoffStrategy, IPolicyManager policyManager)
 {
     this.workerId            = workerId;
     this.externalTaskService = externalTaskService;
     this.topicManagerInfo    = taskManagerInfo;
     this.backoffStrategy     = backoffStrategy;
     this.policyManager       = policyManager;
 }
Beispiel #11
0
 public FuelPumpNotificationManager(
     IPolicyManager policyManager,
     IFuelPumpService fuelPumpService,
     IApiResourceManager resourceManager)
 {
     _policyManager   = policyManager;
     _fuelPumpService = fuelPumpService;
     _resourceManager = resourceManager;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="stockService"></param>
 /// <param name="policyManager"></param>
 /// <param name="taxService"></param>
 /// <param name="resourceManager"></param>
 /// <param name="loginManager"></param>
 public StockManager(IStockService stockService, IPolicyManager policyManager, ITaxService taxService,
                     IApiResourceManager resourceManager, ILoginManager loginManager)
 {
     _stockService    = stockService;
     _policyManager   = policyManager;
     _taxService      = taxService;
     _resourceManager = resourceManager;
     _loginManager    = loginManager;
 }
Beispiel #13
0
 public NewPolicy()
 {
     InitializeComponent();
     policy         = new Policy();
     policyManager  = new PolicyManager();
     countryManager = new CountryManager();
     countriesList  = countryManager.GetCountries();
     DataContext    = this;
 }
 public TierLevelManager(
     IApiResourceManager resourceManager,
     IFuelPumpService fuelPumpService,
     IPolicyManager policyManager)
 {
     _resourceManager = resourceManager;
     _fuelPumpService = fuelPumpService;
     _policyManager   = policyManager;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="policyManager"></param>
 /// <param name="resourceManager"></param>
 /// <param name="treatyService"></param>
 /// <param name="teSystemManager"></param>
 public TreatyManager(IPolicyManager policyManager,
                      IApiResourceManager resourceManager,
                      ITreatyService treatyService,
                      ITeSystemManager teSystemManager)
 {
     _policyManager   = policyManager;
     _resourceManager = resourceManager;
     _treatyService   = treatyService;
     _teSystemManager = teSystemManager;
 }
 public WarrantyBatteryController(IInventoryManager iInventoryManager, ICommonManager iCommonManager, IServiceManager iServiceManager, IBranchManager iBranchManager, IPolicyManager iPolicyManager, IClientManager iClientManager, IReportManager iReportManager, IProductReplaceManager iProductReplaceManager)
 {
     _iInventoryManager      = iInventoryManager;
     _iCommonManager         = iCommonManager;
     _iServiceManager        = iServiceManager;
     _iBranchManager         = iBranchManager;
     _iPolicyManager         = iPolicyManager;
     _iClientManager         = iClientManager;
     _iReportManager         = iReportManager;
     _iProductReplaceManager = iProductReplaceManager;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="dipInputService"></param>
 /// <param name="resourceManager"></param>
 /// <param name="policyManager"></param>
 /// <param name="loginManager"></param>
 public DipInputManager(
     IDipInputService dipInputService,
     IApiResourceManager resourceManager,
     IPolicyManager policyManager,
     ILoginManager loginManager)
 {
     _dipInputService = dipInputService;
     _resourceManager = resourceManager;
     _policyManager   = policyManager;
     _loginManager    = loginManager;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="customerService"></param>
 /// <param name="policyManager"></param>
 /// <param name="resourceManager"></param>
 /// <param name="creditCardManager"></param>
 public CustomerManager(ICustomerService customerService,
                        IPolicyManager policyManager,
                        IApiResourceManager resourceManager,
                        ICreditCardManager creditCardManager
                        )
 {
     _customerService   = customerService;
     _policyManager     = policyManager;
     _resourceManager   = resourceManager;
     _creditCardManager = creditCardManager;
 }
Beispiel #19
0
 public KickBackManager(IPolicyManager policyManager, IKickBackService kickBackService, ISaleManager saleManager, ISaleLineManager saleLineManagaer, IXMLManager xmlManager, IApiResourceManager resourceManager, ITenderManager tenderManager, ICustomerService customerService)
 {
     _policyManager   = policyManager;
     _kickBackService = kickBackService;
     _saleManager     = saleManager;
     _saleLineManager = saleLineManagaer;
     //  _commManager = commManager;
     _xmlManager      = xmlManager;
     _resourceManager = resourceManager;
     _tenderManager   = tenderManager;
     _customerService = customerService;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="policyManager"></param>
 /// <param name="tillService"></param>
 /// <param name="taxExemptSaleService"></param>
 /// <param name="treatyManager"></param>
 /// <param name="purchaseListManager"></param>
 public TaxExemptSaleManager(IPolicyManager policyManager,
                             ITillService tillService,
                             ITaxExemptService taxExemptSaleService,
                             ITreatyManager treatyManager,
                             IPurchaseListManager purchaseListManager)
 {
     _policyManager        = policyManager;
     _tillService          = tillService;
     _taxExemptSaleService = taxExemptSaleService;
     _treatyManager        = treatyManager;
     _purchaseListManager  = purchaseListManager;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="fuelPumpService"></param>
 /// <param name="resourceManager"></param>
 /// <param name="saleLineManager"></param>
 /// <param name="saleManager"></param>
 /// <param name="policyManager"></param>
 public PropaneManager(IFuelPumpService fuelPumpService,
                       IApiResourceManager resourceManager,
                       ISaleLineManager saleLineManager,
                       ISaleManager saleManager,
                       IPolicyManager policyManager)
 {
     _fuelPumpService = fuelPumpService;
     _resourceManager = resourceManager;
     _saleLineManager = saleLineManager;
     _saleManager     = saleManager;
     _policyManager   = policyManager;
 }
Beispiel #22
0
        public AuthorizationManagerTests()
        {
            _policyManager = Substitute.For <IPolicyManager>();
            foreach (var policy in _policies)
            {
                _policyManager.GetClaims(policy).Returns(_claims);
            }

            _user                 = new ClaimsPrincipal();
            _routeConfig          = new RouteConfig();
            _authorizationManager = new AuthorizationManager(_policyManager);
        }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="policyManager"></param>
 /// <param name="loginManager"></param>
 /// <param name="tillManager"></param>
 /// <param name="resourcemanager"></param>
 /// <param name="saleManager"></param>
 public PolicyController(IPolicyManager policyManager,
                         ILoginManager loginManager,
                         ITillManager tillManager,
                         IApiResourceManager resourcemanager,
                         ISaleManager saleManager)
 {
     _policyManager   = policyManager;
     _loginManager    = loginManager;
     _tillManager     = tillManager;
     _resourceManager = resourcemanager;
     _saleManager     = saleManager;
     GlobalContext.Properties["pid"] = Process.GetCurrentProcess().Id;
 }
Beispiel #24
0
 public MessagePublisher(
     IConfiguration configuration,
     IPolicyManager policyManager,
     IRabbitMQClient rabbitMQClient,
     IMessageConsumer messageConsumer)
 {
     Configuration     = configuration;
     m_RabbitMQClient  = rabbitMQClient;
     m_Channel         = m_RabbitMQClient.SetupMQTTBindings(MqttBinding);
     m_BatchReplyMap   = new ConcurrentDictionary <Guid, BatchStatus>();
     m_PolicyManager   = policyManager;
     m_MessageConsumer = messageConsumer;
     m_MessageConsumer.BatchReplyEventChanged += OnBatchReplyChanged;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cardService"></param>
 /// <param name="resourceManager"></param>
 /// <param name="policyManager"></param>
 /// <param name="utilityService"></param>
 /// <param name="creditCardManager"></param>
 /// <param name="encryptDecryptUtilityManager"></param>
 public CardManager(ICardService cardService,
                    IApiResourceManager resourceManager,
                    IPolicyManager policyManager,
                    IUtilityService utilityService,
                    ICreditCardManager creditCardManager,
                    IEncryptDecryptUtilityManager encryptDecryptUtilityManager)
 {
     _cardService       = cardService;
     _resourceManager   = resourceManager;
     _policyManager     = policyManager;
     _utilityService    = utilityService;
     _creditCardManager = creditCardManager;
     _encryptDecrpDecryptUtilityManager = encryptDecryptUtilityManager;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="cashService"></param>
 /// <param name="receiptManager"></param>
 /// <param name="tillService"></param>
 /// <param name="reasonService"></param>
 /// <param name="policyManager"></param>
 /// <param name="loginManager"></param>
 /// <param name="resourceManager"></param>
 /// <param name="tenderManager"></param>
 /// <param name="saleManager"></param>
 public CashBonusManager(ICashBonusService cashBonusService, IPolicyManager policyManager, ITillService tillService, ILoginManager loginManager, IApiResourceManager resourceManager, IReceiptManager receiptManager, IReasonService reasonService /*ITillService tillService,
                                                                                                                                                                                                                                                    * IReasonService reasonService
                                                                                                                                                                                                                                                    * , ITenderManager tenderManager,
                                                                                                                                                                                                                                                    * ISaleManager saleManager*/)
 {
     _cashBonusService = cashBonusService;
     _receiptManager   = receiptManager;
     _reasonService    = reasonService;
     _policyManager    = policyManager;
     _loginManager     = loginManager;
     _resourceManager  = resourceManager;
     _tillService      = tillService;
     //_tenderManager = tenderManager;
     //_saleManager = saleManager;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="resourceManager"></param>
 /// <param name="teSystemManager"></param>
 /// <param name="saleManager"></param>
 /// <param name="saleLineManager"></param>
 /// <param name="tenderManager"></param>
 /// <param name="policyManager"></param>
 public OverLimitManager(
     IApiResourceManager resourceManager,
     ITeSystemManager teSystemManager,
     ISaleManager saleManager,
     ISaleLineManager saleLineManager,
     ITenderManager tenderManager,
     IPolicyManager policyManager)
 {
     _resourceManager = resourceManager;
     _teSystemManager = teSystemManager;
     _saleManager     = saleManager;
     _saleLineManager = saleLineManager;
     _tenderManager   = tenderManager;
     _policyManager   = policyManager;
 }
Beispiel #28
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="cashService"></param>
 /// <param name="receiptManager"></param>
 /// <param name="tillService"></param>
 /// <param name="reasonService"></param>
 /// <param name="policyManager"></param>
 /// <param name="loginManager"></param>
 /// <param name="resourceManager"></param>
 /// <param name="tenderManager"></param>
 /// <param name="saleManager"></param>
 public CashManager(ICashService cashService, IReceiptManager receiptManager, ITillService tillService,
                    IReasonService reasonService, IPolicyManager policyManager,
                    ILoginManager loginManager, IApiResourceManager resourceManager, ITenderManager tenderManager,
                    ISaleManager saleManager)
 {
     _cashService     = cashService;
     _receiptManager  = receiptManager;
     _reasonService   = reasonService;
     _policyManager   = policyManager;
     _loginManager    = loginManager;
     _resourceManager = resourceManager;
     _tillService     = tillService;
     _tenderManager   = tenderManager;
     _saleManager     = saleManager;
 }
Beispiel #29
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="policyManager"></param>
 /// <param name="treatyService"></param>
 /// <param name="taxService"></param>
 /// <param name="teSystemService"></param>
 /// <param name="fuelPumpService"></param>
 /// <param name="reasonService"></param>
 /// <param name="stockService"></param>
 public TeSystemManager(IPolicyManager policyManager,
                        ITreatyService treatyService,
                        ITaxService taxService,
                        ITeSystemService teSystemService,
                        IFuelPumpService fuelPumpService,
                        IReasonService reasonService,
                        IStockService stockService)
 {
     _policyManager   = policyManager;
     _treatyService   = treatyService;
     _taxService      = taxService;
     _teSystemService = teSystemService;
     _fuelPumpService = fuelPumpService;
     _reasonService   = reasonService;
     _stockService    = stockService;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="resourceManager"></param>
 /// <param name="policyManager"></param>
 public GivexClientManager(IApiResourceManager resourceManager, IPolicyManager
                           policyManager)
 {
     _resourceManager = resourceManager;
     _offSet          = policyManager.LoadStoreInfo().OffSet;
     _givexPolicies   = new Dictionary <string, object>
     {
         { "GIVEX_PASS", policyManager.GIVEX_PASS },
         { "GIVEX_USER", policyManager.GIVEX_USER },
         { "GIVEX_IP", policyManager.GIVEX_IP },
         { "GIVEX_PORT", policyManager.GIVEX_PORT },
         { "GIVETIMEOUT", policyManager.GIVETIMEOUT },
         { "GiveXMerchID", policyManager.GiveXMerchID },
         { "AlwAdjGiveX", policyManager.AlwAdjGiveX }
     };
 }
Beispiel #31
0
        public ServerController()
        {
            log4net.Config.XmlConfigurator.Configure();
            try
            {
                log.Info("initializing service...");
                subscribed.TryAdd("guest", "");
                dataManager = new DataManager();
                securityManager = new SecurityManager(dataManager, subscribed);
                policyManager = new PolicyManager(dataManager);
                string time = ConfigurationManager.AppSettings["timeToWaitSeconds"];
                timeToWait = TimeSpan.FromSeconds(int.Parse(time));
                // dataManager.InitForumData();

            }
            catch (Exception e)
            {
                log.Error("couldn't initialize service", e);
                throw e;
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="PolicyController"/> class.
 /// </summary>
 /// <param name="policyManager">The Policy Manager.</param>
 /// <param name="oasisPolicyIdManager">The OasisPolicyIdManager.</param>
 /// <param name="policyStatusManager">The policy status manager.</param>
 public RetrievePolicyController(IPolicyManager policyManager)
 {
     this.policyManager = policyManager;
 }
 public RetrievePolicyController()
 {
     this.policyManager = StructureMap.ObjectFactory.GetInstance<IPolicyManager>();
 }