public void UploadCallConversions()
        {
            moq::Mock <ConversionUploadService.ConversionUploadServiceClient> mockGrpcClient = new moq::Mock <ConversionUploadService.ConversionUploadServiceClient>(moq::MockBehavior.Strict);
            UploadCallConversionsRequest request = new UploadCallConversionsRequest
            {
                CustomerId  = "customer_id3b3724cb",
                Conversions =
                {
                    new CallConversion(),
                },
                PartialFailure = false,
            };
            UploadCallConversionsResponse expectedResponse = new UploadCallConversionsResponse
            {
                PartialFailureError = new gr::Status(),
                Results             =
                {
                    new CallConversionResult(),
                },
            };

            mockGrpcClient.Setup(x => x.UploadCallConversions(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            ConversionUploadServiceClient client   = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null);
            UploadCallConversionsResponse response = client.UploadCallConversions(request.CustomerId, request.Conversions, request.PartialFailure);

            xunit::Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public void UploadCallConversions3()
        {
            Mock <ConversionUploadService.ConversionUploadServiceClient> mockGrpcClient = new Mock <ConversionUploadService.ConversionUploadServiceClient>(MockBehavior.Strict);
            UploadCallConversionsRequest request = new UploadCallConversionsRequest
            {
                CustomerId  = "customerId-1772061412",
                Conversions = { },
            };
            UploadCallConversionsResponse expectedResponse = new UploadCallConversionsResponse();

            mockGrpcClient.Setup(x => x.UploadCallConversions(request, It.IsAny <CallOptions>()))
            .Returns(expectedResponse);
            ConversionUploadServiceClient client   = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null);
            UploadCallConversionsResponse response = client.UploadCallConversions(request);

            Assert.AreEqual(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public void UploadCallConversions()
        {
            Mock <ConversionUploadService.ConversionUploadServiceClient> mockGrpcClient = new Mock <ConversionUploadService.ConversionUploadServiceClient>(MockBehavior.Strict);
            UploadCallConversionsRequest expectedRequest = new UploadCallConversionsRequest
            {
                CustomerId     = "customerId-1772061412",
                Conversions    = { },
                PartialFailure = true,
            };
            UploadCallConversionsResponse expectedResponse = new UploadCallConversionsResponse();

            mockGrpcClient.Setup(x => x.UploadCallConversions(expectedRequest, It.IsAny <CallOptions>()))
            .Returns(expectedResponse);
            ConversionUploadServiceClient client = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null);
            string customerId = "customerId-1772061412";
            IEnumerable <CallConversion> conversions = new List <CallConversion>();
            bool partialFailure = true;
            UploadCallConversionsResponse response = client.UploadCallConversions(customerId, conversions, partialFailure);

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