public void TableWithDefaultConfig_ShouldReturnGoodResultWithDurationAsDefault() { using (Osrm sut = new Osrm(_orlandoEngineConfigMld.EngineConfig)) { var result = sut.Table(new TableParameters() { Coordinates = new List <Coordinate>() { new Coordinate(28.551750, -81.450598), new Coordinate(28.774844, -81.242909), new Coordinate(28.636579, -81.427413) }, }, out TableResult tableResult); Assert.Equal(Status.Ok, result); Assert.NotEmpty(tableResult.Durations); } }
public void TableWithAnnotationDistance_ShouldReturnDistanceOnly() { using (Osrm sut = new Osrm(_orlandoEngineConfigMld.EngineConfig)) { var result = sut.Table(new TableParameters() { Coordinates = new List <Coordinate>() { new Coordinate(28.551750, -81.450598), new Coordinate(28.774844, -81.242909), new Coordinate(28.636579, -81.427413) }, Annotations = Osrmnet.TableService.AnnotationsType.Distance }, out TableResult tableResult); Assert.NotEmpty(tableResult.Distances); Assert.Empty(tableResult.Durations); } }