protected virtual void OnSetUp() { this.ruleProducedByFactory = A.Fake <BuildableCallRule>(); this.fakeObject = new FakeObject(); this.asserter = A.Fake <FakeAsserter>(); this.builder = this.CreateBuilder(); }
public RuleBuilderTests() { this.asserter = A.Fake <IFakeAsserter>(); this.ruleProducedByFactory = A.Fake <BuildableCallRule>(); this.fakeManager = new FakeManager(typeof(object), new object()); this.builder = this.CreateBuilder(); }
public RuleBuilderTests() { this.asserter = A.Fake <IFakeAsserter>(); this.ruleProducedByFactory = A.Fake <BuildableCallRule>(); this.fakeManager = A.Fake <FakeManager>(o => o.CallsBaseMethods()); this.builder = this.CreateBuilder(); }
private RuleBuilder CreateBuilder(BuildableCallRule ruleBeingBuilt) { return(new RuleBuilder(ruleBeingBuilt, this.fakeObject, x => this.asserter)); }
private RuleBuilder CreateBuilder(BuildableCallRule ruleBeingBuilt) { return(new RuleBuilder(ruleBeingBuilt, this.fakeManager, (x, y) => this.asserter)); }
public IAnyCallConfigurationWithReturnTypeSpecified <TMember> CreateConfiguration <TMember>(FakeManager fakeObject, BuildableCallRule callRule) { var parent = this.ruleBuilderFactory.Invoke(callRule, fakeObject); return(new RuleBuilder.ReturnValueConfiguration <TMember>(parent)); }
public IAnyCallConfigurationWithVoidReturnType CreateConfiguration(FakeManager fakeObject, BuildableCallRule callRule) { return(this.ruleBuilderFactory.Invoke(callRule, fakeObject)); }
private FakeConfiguration CreateConfiguration(BuildableCallRule ruleBeingBuilt) { return(new FakeConfiguration(this.fake, ruleBeingBuilt)); }
protected virtual void OnSetUp() { this.fake = new FakeObject(); this.ruleProducedByFactory = A.Fake <BuildableCallRule>(); this.configuration = this.CreateConfiguration(); }
private RuleBuilder CreateBuilder(BuildableCallRule ruleBeingBuilt) { return(new RuleBuilder(ruleBeingBuilt)); }
protected virtual void OnSetUp() { this.ruleProducedByFactory = A.Fake <BuildableCallRule>(); this.builder = this.CreateBuilder(); }
public IReturnValueArgumentValidationConfiguration <TMember> CreateConfiguration <TMember>(FakeObject fakeObject, BuildableCallRule callRule) { var parent = new FakeConfiguration(fakeObject, callRule); var configuration = new FakeConfiguration.ReturnValueConfiguration <TMember>(); configuration.ParentConfiguration = parent; return(configuration); }
public IVoidArgumentValidationConfiguration CreateConfiguration(FakeObject fakeObject, BuildableCallRule callRule) { return(new FakeConfiguration(fakeObject, callRule)); }