/// <summary>Snippet for UpdateActiveBreakpoint</summary>
 public void UpdateActiveBreakpoint_RequestObject()
 {
     // Snippet: UpdateActiveBreakpoint(UpdateActiveBreakpointRequest, CallSettings)
     // Create client
     Controller2Client controller2Client = Controller2Client.Create();
     // Initialize request argument(s)
     UpdateActiveBreakpointRequest request = new UpdateActiveBreakpointRequest
     {
         DebuggeeId = "",
         Breakpoint = new Breakpoint(),
     };
     // Make the request
     UpdateActiveBreakpointResponse response = controller2Client.UpdateActiveBreakpoint(request);
     // End snippet
 }
        /// <summary>Snippet for UpdateActiveBreakpointAsync</summary>
        public async Task UpdateActiveBreakpointAsync_RequestObject()
        {
            // Snippet: UpdateActiveBreakpointAsync(UpdateActiveBreakpointRequest, CallSettings)
            // Additional: UpdateActiveBreakpointAsync(UpdateActiveBreakpointRequest, CancellationToken)
            // Create client
            Controller2Client controller2Client = await Controller2Client.CreateAsync();

            // Initialize request argument(s)
            UpdateActiveBreakpointRequest request = new UpdateActiveBreakpointRequest
            {
                DebuggeeId = "",
                Breakpoint = new Breakpoint(),
            };
            // Make the request
            UpdateActiveBreakpointResponse response = await controller2Client.UpdateActiveBreakpointAsync(request);

            // End snippet
        }
        public async Task UpdateActiveBreakpointAsync2()
        {
            Mock <Controller2.Controller2Client> mockGrpcClient = new Mock <Controller2.Controller2Client>(MockBehavior.Strict);
            UpdateActiveBreakpointRequest        request        = new UpdateActiveBreakpointRequest
            {
                DebuggeeId = "debuggeeId-997255898",
                Breakpoint = new Breakpoint(),
            };
            UpdateActiveBreakpointResponse expectedResponse = new UpdateActiveBreakpointResponse();

            mockGrpcClient.Setup(x => x.UpdateActiveBreakpointAsync(request, It.IsAny <CallOptions>()))
            .Returns(new Grpc.Core.AsyncUnaryCall <UpdateActiveBreakpointResponse>(Task.FromResult(expectedResponse), null, null, null, null));
            Controller2Client client = new Controller2ClientImpl(mockGrpcClient.Object, null);
            UpdateActiveBreakpointResponse response = await client.UpdateActiveBreakpointAsync(request);

            Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public void UpdateActiveBreakpoint2()
        {
            Mock <Controller2.Controller2Client> mockGrpcClient = new Mock <Controller2.Controller2Client>(MockBehavior.Strict);
            UpdateActiveBreakpointRequest        request        = new UpdateActiveBreakpointRequest
            {
                DebuggeeId = "debuggeeId-997255898",
                Breakpoint = new Breakpoint(),
            };
            UpdateActiveBreakpointResponse expectedResponse = new UpdateActiveBreakpointResponse();

            mockGrpcClient.Setup(x => x.UpdateActiveBreakpoint(request, It.IsAny <CallOptions>()))
            .Returns(expectedResponse);
            Controller2Client client = new Controller2ClientImpl(mockGrpcClient.Object, null);
            UpdateActiveBreakpointResponse response = client.UpdateActiveBreakpoint(request);

            Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public void UpdateActiveBreakpoint()
        {
            moq::Mock <Controller2.Controller2Client> mockGrpcClient = new moq::Mock <Controller2.Controller2Client>(moq::MockBehavior.Strict);
            UpdateActiveBreakpointRequest             request        = new UpdateActiveBreakpointRequest
            {
                DebuggeeId = "debuggee_id454a924a",
                Breakpoint = new Breakpoint(),
            };
            UpdateActiveBreakpointResponse expectedResponse = new UpdateActiveBreakpointResponse {
            };

            mockGrpcClient.Setup(x => x.UpdateActiveBreakpoint(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            Controller2Client client = new Controller2ClientImpl(mockGrpcClient.Object, null);
            UpdateActiveBreakpointResponse response = client.UpdateActiveBreakpoint(request.DebuggeeId, request.Breakpoint);

            xunit::Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public async stt::Task UpdateActiveBreakpointAsync()
        {
            moq::Mock <Controller2.Controller2Client> mockGrpcClient = new moq::Mock <Controller2.Controller2Client>(moq::MockBehavior.Strict);
            UpdateActiveBreakpointRequest             request        = new UpdateActiveBreakpointRequest
            {
                DebuggeeId = "debuggee_id454a924a",
                Breakpoint = new Breakpoint(),
            };
            UpdateActiveBreakpointResponse expectedResponse = new UpdateActiveBreakpointResponse {
            };

            mockGrpcClient.Setup(x => x.UpdateActiveBreakpointAsync(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall <UpdateActiveBreakpointResponse>(stt::Task.FromResult(expectedResponse), null, null, null, null));
            Controller2Client client = new Controller2ClientImpl(mockGrpcClient.Object, null);
            UpdateActiveBreakpointResponse responseCallSettings = await client.UpdateActiveBreakpointAsync(request.DebuggeeId, request.Breakpoint, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));

            xunit::Assert.Same(expectedResponse, responseCallSettings);
            UpdateActiveBreakpointResponse responseCancellationToken = await client.UpdateActiveBreakpointAsync(request.DebuggeeId, request.Breakpoint, st::CancellationToken.None);

            xunit::Assert.Same(expectedResponse, responseCancellationToken);
            mockGrpcClient.VerifyAll();
        }