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