public void UpdateNotificationChannel() { Mock <NotificationChannelService.NotificationChannelServiceClient> mockGrpcClient = new Mock <NotificationChannelService.NotificationChannelServiceClient>(MockBehavior.Strict); UpdateNotificationChannelRequest expectedRequest = new UpdateNotificationChannelRequest { UpdateMask = new FieldMask(), NotificationChannel = new NotificationChannel(), }; NotificationChannel expectedResponse = new NotificationChannel { Type = "type3575610", Name = "name3373707", DisplayName = "displayName1615086568", Description = "description-1724546052", }; mockGrpcClient.Setup(x => x.UpdateNotificationChannel(expectedRequest, It.IsAny <CallOptions>())) .Returns(expectedResponse); NotificationChannelServiceClient client = new NotificationChannelServiceClientImpl(mockGrpcClient.Object, null); FieldMask updateMask = new FieldMask(); NotificationChannel notificationChannel = new NotificationChannel(); NotificationChannel response = client.UpdateNotificationChannel(updateMask, notificationChannel); Assert.Same(expectedResponse, response); mockGrpcClient.VerifyAll(); }