Exemplo n.º 1
0
        public void CommentOnNetworkUpdate_ToLongCommentParam_Test()
        {
            ILinkedInAuthorization authorization = new LinkedInAuthorizationMock();
            LinkedInService        target        = new LinkedInService(authorization);

            target.CommentOnNetworkUpdate("update key", Constants.CreateShare_ToLongCommentParam);
        }
Exemplo n.º 2
0
        public void CommentOnNetworkUpdate_EmptyUpdateKeyParam_Test()
        {
            ILinkedInAuthorization authorization = new LinkedInAuthorizationMock();
            LinkedInService        target        = new LinkedInService(authorization);

            target.CommentOnNetworkUpdate(string.Empty, null);
        }
Exemplo n.º 3
0
        public void CommentOnNetworkUpdate_EmptyCommentParam_Test()
        {
            ILinkedInAuthorization authorization = new LinkedInAuthorizationMock();
            LinkedInService        target        = new LinkedInService(authorization);

            target.CommentOnNetworkUpdate("update key", string.Empty);
        }
    protected void sendButton_Click(object sender, EventArgs e)
    {
        LinkedInService service = new LinkedInService(base.Authorization);

        try
        {
            console.Text += service.CommentOnNetworkUpdate(updateKeyTextBox.Text, commentTextBox.Text);
        }
        catch (LinkedInException lie)
        {
            console.Text += lie.Message;
        }
    }
    protected void sendButton_Click(object sender, EventArgs e)
    {
        LinkedInService service = new LinkedInService(base.Authorization);

        try
        {
          console.Text += service.CommentOnNetworkUpdate(updateKeyTextBox.Text, commentTextBox.Text);
        }
        catch (LinkedInException lie)
        {
          console.Text += lie.Message;
        }
    }
        public void CommentOnNetworkUpdate_ToLongCommentParam_Test()
        {
            ILinkedInAuthorization authorization = new LinkedInAuthorizationMock();
              LinkedInService target = new LinkedInService(authorization);

              target.CommentOnNetworkUpdate("update key", Constants.CreateShare_ToLongCommentParam);
        }
        public void CommentOnNetworkUpdate_NoUpdateKeyParam_Test()
        {
            ILinkedInAuthorization authorization = new LinkedInAuthorizationMock();
              LinkedInService target = new LinkedInService(authorization);

              target.CommentOnNetworkUpdate(null, null);
        }
        public void CommentOnNetworkUpdate_EmptyCommentParam_Test()
        {
            ILinkedInAuthorization authorization = new LinkedInAuthorizationMock();
              LinkedInService target = new LinkedInService(authorization);

              target.CommentOnNetworkUpdate("update key", string.Empty);
        }