private static WrappedObjectRule CreateAndAddWrapperRule(object wrappedInstance, FakeManager fake)
        {
            var wrappingRule = new WrappedObjectRule(wrappedInstance);

            fake.AddRuleFirst(wrappingRule);
            return(wrappingRule);
        }
 private static void AddRecordingRuleWhenRecorderIsSpecified(ISelfInitializingFakeRecorder recorder, FakeManager fake, WrappedObjectRule wrapperRule)
 {
     if (recorder != null)
     {
         fake.AddRuleFirst(new SelfInitializationRule(wrapperRule, recorder));
     }
 }
 private static void AddRecordingRuleWhenRecorderIsSpecified(ISelfInitializingFakeRecorder recorder, FakeManager fake, WrappedObjectRule wrapperRule)
 {
     if (recorder != null)
     {
         fake.AddRuleFirst(new SelfInitializationRule(wrapperRule, recorder));
     }
 }
 private static WrappedObjectRule CreateAndAddWrapperRule(object wrappedInstance, FakeManager fake)
 {
     var wrappingRule = new WrappedObjectRule(wrappedInstance);
     fake.AddRuleFirst(wrappingRule);
     return wrappingRule;
 }