Example #1
0
 public RecordingCallRule(FakeManager fakeManager, RecordedCallRule recordedRule, FakeAsserter.Factory asserterFactory, IFakeObjectCallFormatter callFormatter)
 {
     this.fakeManager     = fakeManager;
     this.recordedRule    = recordedRule;
     this.asserterFactory = asserterFactory;
     this.callFormatter   = callFormatter;
 }
        public RecordingRuleBuilder(RecordedCallRule rule, RuleBuilder wrappedBuilder)
        {
            this.rule = rule;
            this.wrappedBuilder = wrappedBuilder;

            rule.Applicator = x => { };
        }
Example #3
0
        public RecordingRuleBuilder(RecordedCallRule rule, RuleBuilder wrappedBuilder)
        {
            this.rule           = rule;
            this.wrappedBuilder = wrappedBuilder;

            rule.Applicator = x => { };
        }
        public void Setup()
        {
            this.wrappedBuilder = A.Fake<RuleBuilder>(x => x.WithArgumentsForConstructor(() =>
                new RuleBuilder(A.Fake<BuildableCallRule>(), A.Fake<FakeManager>(), c => A.Fake<IFakeAsserter>())));

            this.rule = A.Fake<RecordedCallRule>();

            this.builder = new RecordingRuleBuilder(this.rule, this.wrappedBuilder);
        }
        public void Setup()
        {
            this.fakedObject = A.Fake<IFoo>();
            this.fakeObject = Fake.GetFakeManager(this.fakedObject);
            this.recordedRule = A.Fake<RecordedCallRule>(x => x.WithArgumentsForConstructor(() => new RecordedCallRule(A.Fake<MethodInfoManager>())));
            this.callFormatter = A.Fake<IFakeObjectCallFormatter>();

            this.asserter = A.Fake<IFakeAsserter>();

            this.asserterFactory = x =>
                {
                    this.argumentUsedForAsserterFactory = x;
                    return this.asserter;
                };
        }
 public RecordingRuleBuilder(RecordedCallRule rule, RuleBuilder wrappedBuilder)
 {
     this.rule = rule;
     this.wrappedBuilder = wrappedBuilder;
 }
 public RecordingCallRule <TFake> Create <TFake>(FakeManager fakeObject, RecordedCallRule recordedRule)
 {
     return(new RecordingCallRule <TFake>(fakeObject, recordedRule, this.Container.Resolve <FakeAsserter.Factory>(), this.Container.Resolve <IFakeObjectCallFormatter>()));
 }
 public RecordingRuleBuilder(RecordedCallRule rule, RuleBuilder wrappedBuilder)
 {
     this.rule           = rule;
     this.wrappedBuilder = wrappedBuilder;
 }
Example #9
0
 public AfterMustHaveHappenedRecordedCallConfiguration(RecordedCallRule rule)
 {
     this.rule = rule;
 }