Exemple #1
0
 public InternalChecker(int customerID, FraudMode mode)
 {
     this.session         = ObjectFactory.GetInstance <ISession>();
     this.whiteList       = ObjectFactory.GetInstance <MP_WhiteListRepository>();
     this.fraudDetections = new List <FraudDetection>();
     this.mode            = mode;
     this.customerID      = customerID;
 }         // constructor
		} // constructor

		/// <summary>
		/// run fraud all checks
		/// </summary>
		/// <param name="customerId">Customer.Id for check</param>
		/// <param name="mode">Mode to check</param>
		/// <returns></returns>
		public bool Check(int customerId, FraudMode mode = FraudMode.FullCheck) {
			var startDate = DateTime.UtcNow;
			var detections = new List<FraudDetection>();
			detections.AddRange(new InternalChecker(customerId, mode).Decide());
			detections.AddRange(new ExternalChecker(customerId).Decide());
			detections.AddRange(new BussinessChecker(customerId).Decide());

			SaveToDb(detections, startDate, customerId);
			return detections.Any();
		} // Check
Exemple #3
0
        }         // FirstOfMonthStatusNotifier

        public ActionMetaData FraudChecker(int customerId, FraudMode mode)
        {
            return(Execute <FraudChecker>(customerId, null, customerId, mode));
        }         // FraudChecker
Exemple #4
0
 public FraudChecker(int customerId, FraudMode mode)
 {
     this.customerId = customerId;
     this.mode       = mode;
 }         // constructor