public void MutateFeedMappings() { Mock <FeedMappingService.FeedMappingServiceClient> mockGrpcClient = new Mock <FeedMappingService.FeedMappingServiceClient>(MockBehavior.Strict); MutateFeedMappingsRequest expectedRequest = new MutateFeedMappingsRequest { CustomerId = "customerId-1772061412", Operations = { }, PartialFailure = true, ValidateOnly = false, }; MutateFeedMappingsResponse expectedResponse = new MutateFeedMappingsResponse(); mockGrpcClient.Setup(x => x.MutateFeedMappings(expectedRequest, It.IsAny <CallOptions>())) .Returns(expectedResponse); FeedMappingServiceClient client = new FeedMappingServiceClientImpl(mockGrpcClient.Object, null); string customerId = "customerId-1772061412"; IEnumerable <FeedMappingOperation> operations = new List <FeedMappingOperation>(); bool partialFailure = true; bool validateOnly = false; MutateFeedMappingsResponse response = client.MutateFeedMappings(customerId, operations, partialFailure, validateOnly); Assert.AreEqual(expectedResponse, response); mockGrpcClient.VerifyAll(); }