public IVoidConfiguration AnyCall() { var rule = new AnyCallCallRule(); this.fakeObject.AddRule(rule); return(this.configurationFactory.CreateConfiguration(this.fakeObject, rule)); }
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; }
public IAnyCallConfigurationWithNoReturnTypeSpecified CreateAnyCallConfiguration(FakeManager fakeObject, AnyCallCallRule callRule) { return(new AnyCallConfiguration(fakeObject, callRule, this.Container.Resolve <IConfigurationFactory>())); }
public IAnyCallConfiguration CreateAnyCallConfiguration(FakeObject fakeObject, AnyCallCallRule callRule) { return(new AnyCallConfiguration(fakeObject, callRule, this.Container.Resolve <IConfigurationFactory>())); }
public AnyCallConfiguration(FakeObject fakeObject, AnyCallCallRule configuredRule, IConfigurationFactory configurationFactory) { this.fakeObject = fakeObject; this.configuredRule = configuredRule; this.configurationFactory = configurationFactory; }