public async stt::Task UpdateTestCaseAsync()
        {
            moq::Mock <TestCases.TestCasesClient> mockGrpcClient = new moq::Mock <TestCases.TestCasesClient>(moq::MockBehavior.Strict);

            mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock <lro::Operations.OperationsClient>().Object);
            UpdateTestCaseRequest request = new UpdateTestCaseRequest
            {
                TestCase   = new TestCase(),
                UpdateMask = new wkt::FieldMask(),
            };
            TestCase expectedResponse = new TestCase
            {
                TestCaseName = TestCaseName.FromProjectLocationAgentTestCase("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]"),
                Tags         = { "tags52c47ad5", },
                DisplayName  = "display_name137f65c2",
                Notes        = "notes00b55843",
                TestCaseConversationTurns =
                {
                    new ConversationTurn(),
                },
                CreationTime   = new wkt::Timestamp(),
                LastTestResult = new TestCaseResult(),
                TestConfig     = new TestConfig(),
            };

            mockGrpcClient.Setup(x => x.UpdateTestCaseAsync(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall <TestCase>(stt::Task.FromResult(expectedResponse), null, null, null, null));
            TestCasesClient client = new TestCasesClientImpl(mockGrpcClient.Object, null);
            TestCase        responseCallSettings = await client.UpdateTestCaseAsync(request.TestCase, request.UpdateMask, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));

            xunit::Assert.Same(expectedResponse, responseCallSettings);
            TestCase responseCancellationToken = await client.UpdateTestCaseAsync(request.TestCase, request.UpdateMask, st::CancellationToken.None);

            xunit::Assert.Same(expectedResponse, responseCancellationToken);
            mockGrpcClient.VerifyAll();
        }
        public void CreateTestCaseResourceNames()
        {
            moq::Mock <TestCases.TestCasesClient> mockGrpcClient = new moq::Mock <TestCases.TestCasesClient>(moq::MockBehavior.Strict);

            mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock <lro::Operations.OperationsClient>().Object);
            CreateTestCaseRequest request = new CreateTestCaseRequest
            {
                ParentAsAgentName = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]"),
                TestCase          = new TestCase(),
            };
            TestCase expectedResponse = new TestCase
            {
                TestCaseName = TestCaseName.FromProjectLocationAgentTestCase("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]"),
                Tags         = { "tags52c47ad5", },
                DisplayName  = "display_name137f65c2",
                Notes        = "notes00b55843",
                TestCaseConversationTurns =
                {
                    new ConversationTurn(),
                },
                CreationTime   = new wkt::Timestamp(),
                LastTestResult = new TestCaseResult(),
                TestConfig     = new TestConfig(),
            };

            mockGrpcClient.Setup(x => x.CreateTestCase(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            TestCasesClient client   = new TestCasesClientImpl(mockGrpcClient.Object, null);
            TestCase        response = client.CreateTestCase(request.ParentAsAgentName, request.TestCase);

            xunit::Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public void BatchDeleteTestCasesRequestObject()
        {
            moq::Mock <TestCases.TestCasesClient> mockGrpcClient = new moq::Mock <TestCases.TestCasesClient>(moq::MockBehavior.Strict);

            mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock <lro::Operations.OperationsClient>().Object);
            BatchDeleteTestCasesRequest request = new BatchDeleteTestCasesRequest
            {
                ParentAsAgentName = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]"),
                TestCaseNames     =
                {
                    TestCaseName.FromProjectLocationAgentTestCase("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]"),
                },
            };
            wkt::Empty expectedResponse = new wkt::Empty {
            };

            mockGrpcClient.Setup(x => x.BatchDeleteTestCases(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            TestCasesClient client = new TestCasesClientImpl(mockGrpcClient.Object, null);

            client.BatchDeleteTestCases(request);
            mockGrpcClient.VerifyAll();
        }
        public async stt::Task BatchDeleteTestCasesRequestObjectAsync()
        {
            moq::Mock <TestCases.TestCasesClient> mockGrpcClient = new moq::Mock <TestCases.TestCasesClient>(moq::MockBehavior.Strict);

            mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock <lro::Operations.OperationsClient>().Object);
            BatchDeleteTestCasesRequest request = new BatchDeleteTestCasesRequest
            {
                ParentAsAgentName = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]"),
                TestCaseNames     =
                {
                    TestCaseName.FromProjectLocationAgentTestCase("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]"),
                },
            };
            wkt::Empty expectedResponse = new wkt::Empty {
            };

            mockGrpcClient.Setup(x => x.BatchDeleteTestCasesAsync(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall <wkt::Empty>(stt::Task.FromResult(expectedResponse), null, null, null, null));
            TestCasesClient client = new TestCasesClientImpl(mockGrpcClient.Object, null);
            await client.BatchDeleteTestCasesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));

            await client.BatchDeleteTestCasesAsync(request, st::CancellationToken.None);

            mockGrpcClient.VerifyAll();
        }