public void DeleteNotificationChannel2() { Mock <NotificationChannelService.NotificationChannelServiceClient> mockGrpcClient = new Mock <NotificationChannelService.NotificationChannelServiceClient>(MockBehavior.Strict); DeleteNotificationChannelRequest request = new DeleteNotificationChannelRequest { NotificationChannelName = new NotificationChannelName("[PROJECT]", "[NOTIFICATION_CHANNEL]"), }; Empty expectedResponse = new Empty(); mockGrpcClient.Setup(x => x.DeleteNotificationChannel(request, It.IsAny <CallOptions>())) .Returns(expectedResponse); NotificationChannelServiceClient client = new NotificationChannelServiceClientImpl(mockGrpcClient.Object, null); client.DeleteNotificationChannel(request); mockGrpcClient.VerifyAll(); }