public FakeObjectCreator(IProxyGenerator proxyGenerator, IExceptionThrower thrower, IFakeManagerAccessor fakeManagerAttacher, IFakeObjectConfigurator configurer) { this.proxyGenerator = proxyGenerator; this.thrower = thrower; this.fakeManagerAttacher = fakeManagerAttacher; this.configurer = configurer; }
public void Setup() { this.proxyGenerator = A.Fake <IProxyGenerator>(); this.thrower = A.Fake <IExceptionThrower>(); this.fakeCallProcessorProviderFactory = A.Fake <FakeCallProcessorProvider.Factory>(); this.fakeObjectCreator = new FakeObjectCreator(this.proxyGenerator, this.thrower, this.fakeCallProcessorProviderFactory); }
public void SetUp() { this.proxyGenerator = A.Fake <IProxyGenerator>(); this.thrower = A.Fake <IExceptionThrower>(); this.fakeManagerAttacher = A.Fake <IFakeManagerAccessor>(); this.configurer = A.Fake <IFakeObjectConfigurator>(); this.fakeObjectCreator = new FakeObjectCreator(this.proxyGenerator, this.thrower, this.fakeManagerAttacher, this.configurer); }
public FakeObjectCreatorTests() { this.proxyGenerator = A.Fake <IProxyGenerator>(); string s; A.CallTo(() => this.proxyGenerator.CanGenerateProxy(A <Type> ._, out s)).WithAnyArguments().Returns(true); this.thrower = A.Fake <IExceptionThrower>(); this.fakeCallProcessorProviderFactory = A.Fake <FakeCallProcessorProvider.Factory>(); this.fakeObjectCreator = new FakeObjectCreator(this.proxyGenerator, this.thrower, this.fakeCallProcessorProviderFactory); }
public override void Given() { ProxiedInstance = ExceptionHandlingDynamicProxyFactory.Create( InstanceToProxy, new IExceptionExploder[0], new IExceptionMapper[] { new MockArgumentExceptionMapper() }); }
public override void Given() { ProxiedInstance = ExceptionHandlingDynamicProxyFactory.Create( InstanceToProxy, Enumerable.Empty <IExceptionExploder>(), new[] { new MockArgumentExceptionMapper() }); }
public FakeObjectCreator(IProxyGenerator proxyGenerator, IExceptionThrower thrower, FakeCallProcessorProvider.Factory fakeCallProcessorProviderFactory) { this.proxyGenerator = proxyGenerator; this.thrower = thrower; this.fakeCallProcessorProviderFactory = fakeCallProcessorProviderFactory; }