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));
 }
Beispiel #3
0
 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));
 }