示例#1
0
        public void UnConfirmComment_RequiredParameters()
        {
            var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder
                                        .SetToken("19bd0a016563402aa39f9800ff7a9f93")
                                        .Build();

            var output    = new ResultSrv <bool>();
            var commentVo = CommentVo.ConcreteBuilder
                            .SetServiceCallParameters(internalServiceCallVo)
                            .SetCommentId(7281)
                            .Build();

            DealingService.UnConfirmComment(commentVo, response => Listener.GetResult(response, out output));
            Assert.False(output.HasError);
        }
示例#2
0
 public ResultSrv <bool> UnConfirmComment()
 {
     try
     {
         var output    = new ResultSrv <bool>();
         var commentVo = CommentVo.ConcreteBuilder
                         .SetServiceCallParameters(internalServiceCallVo)
                         .SetCommentId(0)
                         .Build();
         DealingService.UnConfirmComment(commentVo, response => Listener.GetResult(response, out output));
         return(output);
     }
     catch (PodException podException)
     {
         Console.WriteLine(
             $"-- {podException.Code}-an error has occured : {Environment.NewLine}{podException.Message}");
         throw;
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception.Message);
         throw;
     }
 }