public void MutateAdParameters()
        {
            moq::Mock <AdParameterService.AdParameterServiceClient> mockGrpcClient = new moq::Mock <AdParameterService.AdParameterServiceClient>(moq::MockBehavior.Strict);
            MutateAdParametersRequest request = new MutateAdParametersRequest
            {
                CustomerId = "customer_id3b3724cb",
                Operations =
                {
                    new AdParameterOperation(),
                },
            };
            MutateAdParametersResponse expectedResponse = new MutateAdParametersResponse
            {
                Results =
                {
                    new MutateAdParameterResult(),
                },
                PartialFailureError = new gr::Status(),
            };

            mockGrpcClient.Setup(x => x.MutateAdParameters(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            AdParameterServiceClient   client   = new AdParameterServiceClientImpl(mockGrpcClient.Object, null);
            MutateAdParametersResponse response = client.MutateAdParameters(request.CustomerId, request.Operations);

            xunit::Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public void MutateAdParametersRequestObject()
        {
            moq::Mock <AdParameterService.AdParameterServiceClient> mockGrpcClient = new moq::Mock <AdParameterService.AdParameterServiceClient>(moq::MockBehavior.Strict);
            MutateAdParametersRequest request = new MutateAdParametersRequest
            {
                CustomerId = "customer_id3b3724cb",
                Operations =
                {
                    new AdParameterOperation(),
                },
                PartialFailure      = false,
                ValidateOnly        = true,
                ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly,
            };
            MutateAdParametersResponse expectedResponse = new MutateAdParametersResponse
            {
                Results =
                {
                    new MutateAdParameterResult(),
                },
                PartialFailureError = new gr::Status(),
            };

            mockGrpcClient.Setup(x => x.MutateAdParameters(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            AdParameterServiceClient   client   = new AdParameterServiceClientImpl(mockGrpcClient.Object, null);
            MutateAdParametersResponse response = client.MutateAdParameters(request);

            Assert.AreEqual(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public void MutateAdParameters3()
        {
            Mock <AdParameterService.AdParameterServiceClient> mockGrpcClient = new Mock <AdParameterService.AdParameterServiceClient>(MockBehavior.Strict);
            MutateAdParametersRequest request = new MutateAdParametersRequest
            {
                CustomerId = "customerId-1772061412",
                Operations = { },
            };
            MutateAdParametersResponse expectedResponse = new MutateAdParametersResponse();

            mockGrpcClient.Setup(x => x.MutateAdParameters(request, It.IsAny <CallOptions>()))
            .Returns(expectedResponse);
            AdParameterServiceClient   client   = new AdParameterServiceClientImpl(mockGrpcClient.Object, null);
            MutateAdParametersResponse response = client.MutateAdParameters(request);

            Assert.AreEqual(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public void MutateAdParameters()
        {
            Mock <AdParameterService.AdParameterServiceClient> mockGrpcClient = new Mock <AdParameterService.AdParameterServiceClient>(MockBehavior.Strict);
            MutateAdParametersRequest expectedRequest = new MutateAdParametersRequest
            {
                CustomerId     = "customerId-1772061412",
                Operations     = { },
                PartialFailure = true,
                ValidateOnly   = false,
            };
            MutateAdParametersResponse expectedResponse = new MutateAdParametersResponse();

            mockGrpcClient.Setup(x => x.MutateAdParameters(expectedRequest, It.IsAny <CallOptions>()))
            .Returns(expectedResponse);
            AdParameterServiceClient client = new AdParameterServiceClientImpl(mockGrpcClient.Object, null);
            string customerId = "customerId-1772061412";
            IEnumerable <AdParameterOperation> operations = new List <AdParameterOperation>();
            bool partialFailure = true;
            bool validateOnly   = false;
            MutateAdParametersResponse response = client.MutateAdParameters(customerId, operations, partialFailure, validateOnly);

            Assert.AreEqual(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }