コード例 #1
0
 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");
     }
 }
コード例 #2
0
 public void ReloadModel()
 {
     NetworkAnalyst networkAnalyst = new NetworkAnalyst("http://" + ip + ":8090/iserver/services/transportationanalyst-sample/rest");
     bool succeed = networkAnalyst.ReloadModel("RoadNet@Changchun");
     Assert.IsTrue(succeed);
 }