Esempio n. 1
0
        public void ConfirmComment_RequiredParameters()
        {
            var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder
                                        .SetToken("19bd0a016563402aa39f9800ff7a9f93 ")
                                        .Build();

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

            DealingService.ConfirmComment(commentVo, response => Listener.GetResult(response, out output));
            Assert.False(output.HasError);
        }
Esempio n. 2
0
 public ResultSrv <bool> ConfirmComment()
 {
     try
     {
         var output    = new ResultSrv <bool>();
         var commentVo = CommentVo.ConcreteBuilder
                         .SetServiceCallParameters(internalServiceCallVo)
                         .SetCommentId(0)
                         .Build();
         DealingService.ConfirmComment(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;
     }
 }