public void GetNotificationChannel2() { Mock <NotificationChannelService.NotificationChannelServiceClient> mockGrpcClient = new Mock <NotificationChannelService.NotificationChannelServiceClient>(MockBehavior.Strict); GetNotificationChannelRequest request = new GetNotificationChannelRequest { NotificationChannelName = new NotificationChannelName("[PROJECT]", "[NOTIFICATION_CHANNEL]"), }; NotificationChannel expectedResponse = new NotificationChannel { Type = "type3575610", Name = "name2-1052831874", DisplayName = "displayName1615086568", Description = "description-1724546052", }; mockGrpcClient.Setup(x => x.GetNotificationChannel(request, It.IsAny <CallOptions>())) .Returns(expectedResponse); NotificationChannelServiceClient client = new NotificationChannelServiceClientImpl(mockGrpcClient.Object, null); NotificationChannel response = client.GetNotificationChannel(request); Assert.Same(expectedResponse, response); mockGrpcClient.VerifyAll(); }