public ResultSrv <DealerProductPermissionSrv> DisableDealerProductPermission() { try { var output = new ResultSrv <DealerProductPermissionSrv>(); var registerUserVo = DisableDealerProductPermissionVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetEntityId(0) .SetDealerBizId(0) .Build(); DealingService.DisableDealerProductPermission(registerUserVo, 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 DisableDealerProductPermission_AllParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <DealerProductPermissionSrv>(); var disableDealerProductPermissionVo = DisableDealerProductPermissionVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetEntityId(0) .SetDealerBizId(0) .Build(); DealingService.DisableDealerProductPermission(disableDealerProductPermissionVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }