private SchemaRecordCheck(SchemaRuleAccess ruleAccess, IndexAccessors indexAccessors, IDictionary <long, DynamicRecord> indexObligations, IDictionary <long, DynamicRecord> constraintObligations, IDictionary <SchemaRule, DynamicRecord> verifiedRulesWithRecords, CheckStrategy strategy) { this.RuleAccess = ruleAccess; this._indexAccessors = indexAccessors; this._indexObligations = indexObligations; this._constraintObligations = constraintObligations; this._verifiedRulesWithRecords = verifiedRulesWithRecords; this._strategy = strategy; }
public SchemaRecordCheck(SchemaRuleAccess ruleAccess, IndexAccessors indexAccessors) { this.RuleAccess = ruleAccess; this._indexAccessors = indexAccessors; this._indexObligations = new Dictionary <long, DynamicRecord>(); this._constraintObligations = new Dictionary <long, DynamicRecord>(); this._verifiedRulesWithRecords = new Dictionary <SchemaRule, DynamicRecord>(); this._strategy = new RulesCheckStrategy(this); }
private static void Main(string[] args) { PaymentStrategy paymentStrategy1 = new CashStrategy(); PaymentStrategy paymentStrategy2 = new CheckStrategy(); PaymentStrategy paymentStrategy3 = new DebitCardStrategy(); paymentStrategy1.Pay(100); paymentStrategy2.Pay(150); paymentStrategy3.Pay(300); Console.ReadKey(); }
internal SomethingResourcePool(int minSize, CheckStrategy checkStrategy, StatefulMonitor stateMonitor) : base(minSize, checkStrategy, stateMonitor) { }