public void GetFeedPlaceholderView2()
 {
     Mock<FeedPlaceholderViewService.FeedPlaceholderViewServiceClient> mockGrpcClient = new Mock<FeedPlaceholderViewService.FeedPlaceholderViewServiceClient>(MockBehavior.Strict);
     GetFeedPlaceholderViewRequest request = new GetFeedPlaceholderViewRequest
     {
         ResourceName = new FeedPlaceholderViewName("[CUSTOMER]", "[FEED_PLACEHOLDER_VIEW]").ToString(),
     };
     FeedPlaceholderView expectedResponse = new FeedPlaceholderView
     {
         ResourceName = "resourceName2625949903",
     };
     mockGrpcClient.Setup(x => x.GetFeedPlaceholderView(request, It.IsAny<CallOptions>()))
         .Returns(expectedResponse);
     FeedPlaceholderViewServiceClient client = new FeedPlaceholderViewServiceClientImpl(mockGrpcClient.Object, null);
     FeedPlaceholderView response = client.GetFeedPlaceholderView(request);
     Assert.AreEqual(expectedResponse, response);
     mockGrpcClient.VerifyAll();
 }
        public void GetFeedPlaceholderView()
        {
            moq::Mock <FeedPlaceholderViewService.FeedPlaceholderViewServiceClient> mockGrpcClient = new moq::Mock <FeedPlaceholderViewService.FeedPlaceholderViewServiceClient>(moq::MockBehavior.Strict);
            GetFeedPlaceholderViewRequest request = new GetFeedPlaceholderViewRequest
            {
                ResourceNameAsFeedPlaceholderViewName = gagvr::FeedPlaceholderViewName.FromCustomerFeedPlaceholderView("[CUSTOMER]", "[FEED_PLACEHOLDER_VIEW]"),
            };
            gagvr::FeedPlaceholderView expectedResponse = new gagvr::FeedPlaceholderView
            {
                ResourceNameAsFeedPlaceholderViewName = gagvr::FeedPlaceholderViewName.FromCustomerFeedPlaceholderView("[CUSTOMER]", "[FEED_PLACEHOLDER_VIEW]"),
                PlaceholderType = gagve::PlaceholderTypeEnum.Types.PlaceholderType.Message,
            };

            mockGrpcClient.Setup(x => x.GetFeedPlaceholderView(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            FeedPlaceholderViewServiceClient client   = new FeedPlaceholderViewServiceClientImpl(mockGrpcClient.Object, null);
            gagvr::FeedPlaceholderView       response = client.GetFeedPlaceholderView(request.ResourceName);

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