예제 #1
0
 protected abstract void OnAddRule(FakeObject fakeObject, CallRuleMetadata rule);
예제 #2
0
 protected override void OnAddRule(FakeObject fakeObject, CallRuleMetadata rule)
 {
     // Do nothing
 }
예제 #3
0
 /// <summary>
 /// Adds a fake object call to the current scope.
 /// </summary>
 /// <param name="fakeObject">The fake object.</param>
 /// <param name="rule">The rule to add.</param>
 internal void AddRule(FakeObject fakeObject, CallRuleMetadata rule)
 {
     fakeObject.AllUserRules.AddFirst(rule);
     this.OnAddRule(fakeObject, rule);
 }
예제 #4
0
 private void ApplyRule(CallRuleMetadata rule, IWritableFakeObjectCall fakeObjectCall)
 {
     rule.CalledNumberOfTimes++;
     rule.Rule.Apply(fakeObjectCall);
 }