예제 #1
0
        }         // LoadConfiguration

        public QuickOffer(int nCustomerID, bool bSaveOfferToDB, bool bHackForTest, QuickOfferConfigurationData oCfg)
        {
            m_nCustomerID    = nCustomerID;
            m_bSaveOfferToDB = bSaveOfferToDB;
            m_bHackForTest   = bHackForTest;
            Offer            = null;
            m_oCfg           = oCfg ?? LoadConfiguration();
        }         // constructor
예제 #2
0
 public QuickOfferData(QuickOfferConfigurationData qoc, AConnection oDB, ASafeLog oLog)
 {
     Log              = new SafeLog(oLog);
     IsValid          = false;
     Cfg              = qoc;
     m_oExperianUtils = new ExperianUtils(oLog);
     DB = oDB;
 }         // constructor
예제 #3
0
        }         // QuickOfferWithPrerequisites

        private QuickOfferActionResult QuickOfferProcedure(int nCustomerID, bool bSaveOfferToDB, bool bHackForTest, QuickOfferConfigurationData oCfg)
        {
            QuickOffer oStrategy;

            var oResult = ExecuteSync(out oStrategy, nCustomerID, nCustomerID, nCustomerID, bSaveOfferToDB, bHackForTest, oCfg);

            return(new QuickOfferActionResult {
                HasValue = !ReferenceEquals(oStrategy.Offer, null),
                Value = oStrategy.Offer,
                MetaData = oResult,
            });
        } // QuickOfferProcedure