示例#1
0
        public IVoidConfiguration AnyCall()
        {
            var rule = new AnyCallCallRule();

            this.fakeObject.AddRule(rule);
            return(this.configurationFactory.CreateConfiguration(this.fakeObject, rule));
        }
示例#2
0
        public IAnyCallConfigurationWithNoReturnTypeSpecified AnyCall()
        {
            var rule = new AnyCallCallRule();

            this.manager.AddRuleFirst(rule);
            return(this.configurationFactory.CreateAnyCallConfiguration(this.manager, rule));
        }
        public IAnyCallConfigurationWithNoReturnTypeSpecified CallTo(object fakeObject)
        {
            GuardAgainstNonFake(fakeObject);
            var rule    = new AnyCallCallRule();
            var manager = Fake.GetFakeManager(fakeObject);

            return(this.configurationFactory.CreateAnyCallConfiguration(manager, rule));
        }
 public AnyCallConfiguration(FakeManager manager, AnyCallCallRule configuredRule, IConfigurationFactory configurationFactory)
 {
     this.manager              = manager;
     this.configuredRule       = configuredRule;
     this.configurationFactory = configurationFactory;
 }
示例#5
0
 public IAnyCallConfigurationWithNoReturnTypeSpecified CreateAnyCallConfiguration(FakeManager fakeObject, AnyCallCallRule callRule)
 {
     return(new AnyCallConfiguration(fakeObject, callRule, this.Container.Resolve <IConfigurationFactory>()));
 }
示例#6
0
 public IAnyCallConfiguration CreateAnyCallConfiguration(FakeObject fakeObject, AnyCallCallRule callRule)
 {
     return(new AnyCallConfiguration(fakeObject, callRule, this.Container.Resolve <IConfigurationFactory>()));
 }
示例#7
0
 public AnyCallConfiguration(FakeObject fakeObject, AnyCallCallRule configuredRule, IConfigurationFactory configurationFactory)
 {
     this.fakeObject           = fakeObject;
     this.configuredRule       = configuredRule;
     this.configurationFactory = configurationFactory;
 }