public ResultSrv <List <BusinessDealerSrv> > DealerList() { try { var output = new ResultSrv <List <BusinessDealerSrv> >(); var dealerListVo = DealerListVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) //.SetDealerBizId(0) //.SetEnable(false) //.SetOffset(0) //.SetSize(0) .Build(); DealingService.DealerList(dealerListVo, 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 DealerList_RequiredParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <List <BusinessDealerSrv> >(); var dealerListVo = DealerListVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .Build(); DealingService.DealerList(dealerListVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }