private void StubFakeObjectCreatorWithValue <T>(T value) { A.CallTo(() => this.fakeObjectCreator.CreateFakeWithoutLoopDetection( typeof(T), A <IProxyOptions> ._, A <IDummyValueResolver> ._, A <LoopDetectingResolutionContext> ._)) .Returns(CreationResult.SuccessfullyCreated(value)); }
private void StubFakeObjectCreatorWithValue <T>(T value) { A.CallTo(() => this.fakeObjectCreator.CreateFake(typeof(T), A <IProxyOptions> ._, A <DummyCreationSession> ._, A <IDummyValueResolver> ._)) .Returns(CreationResult.SuccessfullyCreated(value)); }
private static void StubResolverWithDummyValue <T>(IDummyValueResolver resolver, T dummyValue) { A.CallTo(() => resolver.TryResolveDummyValue(typeof(T))) .Returns(CreationResult.SuccessfullyCreated(dummyValue)); }
private static void StubResolverWithDummyValue <T>(IDummyValueResolver resolver, T dummyValue) { A.CallTo(() => resolver.TryResolveDummyValue(typeof(T), A <LoopDetectingResolutionContext> ._)) .Returns(CreationResult.SuccessfullyCreated(dummyValue)); }