Lines Matching refs:fakeCall
59 …var fakeCall = TestCalls.AsyncUnaryCall<DivReply>(Task.FromResult(new DivReply()), Task.FromResult… in ClientBaseAsyncUnaryCallCanBeMocked()
60 …up(m => m.DivAsync(Moq.It.IsAny<DivArgs>(), null, null, CancellationToken.None)).Returns(fakeCall); in ClientBaseAsyncUnaryCallCanBeMocked()
61 Assert.AreSame(fakeCall, mockClient.Object.DivAsync(new DivArgs())); in ClientBaseAsyncUnaryCallCanBeMocked()
71 …var fakeCall = TestCalls.AsyncClientStreamingCall<Num, Num>(mockRequestStream.Object, Task.FromRes… in ClientBaseClientStreamingCallCanBeMocked()
72 mockClient.Setup(m => m.Sum(null, null, CancellationToken.None)).Returns(fakeCall); in ClientBaseClientStreamingCallCanBeMocked()
73 Assert.AreSame(fakeCall, mockClient.Object.Sum()); in ClientBaseClientStreamingCallCanBeMocked()
83 …var fakeCall = TestCalls.AsyncServerStreamingCall<Num>(mockResponseStream.Object, Task.FromResult(… in ClientBaseServerStreamingCallCanBeMocked()
84 …t.Setup(m => m.Fib(Moq.It.IsAny<FibArgs>(), null, null, CancellationToken.None)).Returns(fakeCall); in ClientBaseServerStreamingCallCanBeMocked()
85 Assert.AreSame(fakeCall, mockClient.Object.Fib(new FibArgs())); in ClientBaseServerStreamingCallCanBeMocked()
96 …var fakeCall = TestCalls.AsyncDuplexStreamingCall<DivArgs, DivReply>(mockRequestStream.Object, moc… in ClientBaseDuplexStreamingCallCanBeMocked()
97 mockClient.Setup(m => m.DivMany(null, null, CancellationToken.None)).Returns(fakeCall); in ClientBaseDuplexStreamingCallCanBeMocked()
98 Assert.AreSame(fakeCall, mockClient.Object.DivMany()); in ClientBaseDuplexStreamingCallCanBeMocked()