public ResultSrv <List <CommentSrv> > CommentBusinessList() { try { var output = new ResultSrv <List <CommentSrv> >(); var commentBusinessListVo = CommentBusinessListVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetBusinessId(0) .SetSize(10) .SetOffset(0) //.SetFirstId(0) //.SetLastId(0) .Build(); DealingService.CommentBusinessList(commentBusinessListVo, 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; } }
public void CommentBusinessList_RequiredParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <List <CommentSrv> >(); var commentBusinessListVo = CommentBusinessListVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetBusinessId(13059) .SetSize(10) .SetOffset(0) .Build(); DealingService.CommentBusinessList(commentBusinessListVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }