public void ReloadModel_DatasetNameIsEmpty() { try { NetworkAnalyst networkAnalyst = new NetworkAnalyst("http://" + ip + ":8090/iserver/services/transportationanalyst-sample/rest"); bool succeed = networkAnalyst.ReloadModel(""); } catch (ArgumentNullException exception) { Assert.IsTrue(exception.ParamName == "networkDatasetName"); } }
public void ReloadModel() { NetworkAnalyst networkAnalyst = new NetworkAnalyst("http://" + ip + ":8090/iserver/services/transportationanalyst-sample/rest"); bool succeed = networkAnalyst.ReloadModel("RoadNet@Changchun"); Assert.IsTrue(succeed); }