Lines Matching refs:mockClient
36 var mockClient = new Moq.Mock<Math.MathClient>(); in ClientBaseBlockingUnaryCallCanBeMocked()
39 …mockClient.Setup(m => m.Div(Moq.It.IsAny<DivArgs>(), null, null, CancellationToken.None)).Returns(… in ClientBaseBlockingUnaryCallCanBeMocked()
40 Assert.AreSame(expected, mockClient.Object.Div(new DivArgs())); in ClientBaseBlockingUnaryCallCanBeMocked()
46 var mockClient = new Moq.Mock<Math.MathClient>(); in ClientBaseBlockingUnaryCallWithCallOptionsCallCanBeMocked()
49 …mockClient.Setup(m => m.Div(Moq.It.IsAny<DivArgs>(), Moq.It.IsAny<CallOptions>())).Returns(expecte… in ClientBaseBlockingUnaryCallWithCallOptionsCallCanBeMocked()
50 Assert.AreSame(expected, mockClient.Object.Div(new DivArgs(), new CallOptions())); in ClientBaseBlockingUnaryCallWithCallOptionsCallCanBeMocked()
56 var mockClient = new Moq.Mock<Math.MathClient>(); in ClientBaseAsyncUnaryCallCanBeMocked()
60 …mockClient.Setup(m => m.DivAsync(Moq.It.IsAny<DivArgs>(), null, null, CancellationToken.None)).Ret… in ClientBaseAsyncUnaryCallCanBeMocked()
61 Assert.AreSame(fakeCall, mockClient.Object.DivAsync(new DivArgs())); in ClientBaseAsyncUnaryCallCanBeMocked()
67 var mockClient = new Moq.Mock<Math.MathClient>(); 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()
79 var mockClient = new Moq.Mock<Math.MathClient>(); in ClientBaseServerStreamingCallCanBeMocked()
84 …mockClient.Setup(m => m.Fib(Moq.It.IsAny<FibArgs>(), null, null, CancellationToken.None)).Returns(… in ClientBaseServerStreamingCallCanBeMocked()
85 Assert.AreSame(fakeCall, mockClient.Object.Fib(new FibArgs())); in ClientBaseServerStreamingCallCanBeMocked()
91 var mockClient = new Moq.Mock<Math.MathClient>(); 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()