public FraudChecker(IDummyOrderObject order) { this.IsRulesLoaded = false; this.ReportOfPassingRules = new List<string>(); this.ReportOfFailingRules = new Dictionary<string, string>(); this.order = order; }
public abstract IRuleValidationResult ValidateRule(IDummyOrderObject order);
public void LoadOrder(IDummyOrderObject newOrder) { this.order = newOrder; this.ResetState(); }
public FraudChecker(IDummyOrderObject order, IFraudRepository repository, string channelKey) : this(order, channelKey) { this.repository = repository; this.IsRepositoryLoaded = true; }
public FraudChecker(IDummyOrderObject order, IFraudRepository repository) : this(order) { this.repository = repository; this.IsRepositoryLoaded = true; }
public FraudChecker(IDummyOrderObject order, string channelKey) : this(order) { this.channelKey = channelKey; }