public void UserBusinessInfos_RequiredParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <List <UserBusinessInfoSrv> >(); var userBusinessInfosVo = UserBusinessInfosVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetId(new long[] { 13059 }) .Build(); DealingService.UserBusinessInfos(userBusinessInfosVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }
public ResultSrv <List <UserBusinessInfoSrv> > UserBusinessInfos() { try { var output = new ResultSrv <List <UserBusinessInfoSrv> >(); var userBusinessInfosVo = UserBusinessInfosVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetId(new long[] { 0 }) .Build(); DealingService.UserBusinessInfos(userBusinessInfosVo, 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; } }