Beispiel #1
0
        }         // UpdateMarketplaces

        private void DoConsumerCheck(PreliminaryData preData)
        {
            new ExperianConsumerCheck(this.customerID, null, false).PreventSilentAutomation().Execute();

            if (preData.TypeOfBusiness != TypeOfBusiness.Entrepreneur)
            {
                Strategies.Library.Instance.DB.ForEachRowSafe(
                    sr => {
                    int appDirId         = sr["DirId"];
                    string appDirName    = sr["DirName"];
                    string appDirSurname = sr["DirSurname"];

                    if (string.IsNullOrEmpty(appDirName) || string.IsNullOrEmpty(appDirSurname))
                    {
                        return;
                    }

                    var directorExperianConsumerCheck = new ExperianConsumerCheck(this.customerID, appDirId, false);
                    directorExperianConsumerCheck.Execute();
                },
                    "GetCustomerDirectorsForConsumerCheck",
                    CommandSpecies.StoredProcedure,
                    new QueryParameter("CustomerId", this.customerID)
                    );
            }     // if
        }         // DoConsumerCheck
Beispiel #2
0
        public void TestExperianConsumerCheck()
        {
            var s = new ExperianConsumerCheck(85, null, false);

            s.Execute();

            s = new ExperianConsumerCheck(85, 6, false);
            s.Execute();
        }