Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit d01d1759 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

adding testcases for segment lookup primary bus

parent 55b7f4c4
Branches
Tags
No related merge requests found
......@@ -46,11 +46,11 @@ namespace TUGraz.VectoCore.Models.Declaration {
{
var rows = _segmentTable.AsEnumerable().Where(
r => {
var productionState = r.Field<string>("productionstage").ToInt(0);
var productionStage = r.Field<string>("productionstage").ToInt(0);
var articulatedStr = r.Field<string>("articulated");
var articulatedB = articulatedStr == "-" ? (bool?)null : int.Parse(articulatedStr) != 0;
var numAxles = r.Field<string>("numaxles").ToInt(0);
return productionState == 1 &&
return productionStage == 1 &&
(!articulatedB.HasValue || articulatedB == articulated) &&
axleConfiguration.NumAxles() == numAxles;
}).ToList();
......
HDV group , Production Stage , Vehicle Category , HDV SuperGroup , Articulated , Num Axles , TPMLM_Min , TPMLM_Max , single/double deck , DesignSpeed , Body , .vacc file , Cross Wind Correction , CdxA Standard , AxlesWeights , Width , Length , Height , CurbMass , PassengersLowerDeck , PassengersUpperDeck , Heavy Urban , Urban , Suburban , Interurban , Coach , External displays , Internal displays , Fridge , Kitchen Standard ,
## Heavy Bus Primary Vehicles
P31SD , 1 , HeavyBus , PB41 , - , 2 , 7.4 , 999 , single , 100 , , Bus.vacc , CoachBus , 4.9 , 37.5/62/5 , 2.55 , 12 , 2.7 , 10000 , 80 , 0 , 3 , 3 , 3 , , , 3 , 2 , 0 , 0 ,
P31DD , 1 , HeavyBus , PB41 , - , 2 , 7.4 , 999 , double , 100 , , Bus.vacc , CoachBus , 6.2 , 37.5/62/5 , 2.55 , 12 , 3.7 , 10000 , 60 , 40 , 3.7 , 3.7 , 3.7 , , , 3 , 3 , 0 , 0 ,
P32SD , 1 , HeavyBus , PB41 , - , 2 , 7.4 , 999 , single , 100 , , Bus.vacc , CoachBus , 4.6 , 37.5/62/5 , 2.55 , 12 , 3.0 , 10000 , 45 , 0 , , , , 2.2 , 1.4 , 2 , 2 , 0.5 , 0.5 ,
P32SD , 1 , HeavyBus , PB41 , - , 2 , 7.4 , 999 , double , 100 , , Bus.vacc , CoachBus , 5.2 , 37.5/62/5 , 2.55 , 12 , 3.9 , 10000 , 25 , 35 , , , , 3 , 2 , 1 , 2 , 1 , 1 ,
P31SD , 1 , HeavyBus , PB41 , - , 2 , 7.4 , 999 , single , 100 , , Bus.vacc , CoachBus , 4.9 , 37.5/62.5 , 2.55 , 12 , 2.7 , 10000 , 80 , 0 , 3 , 3 , 3 , , , 3 , 2 , 0 , 0 ,
P31DD , 1 , HeavyBus , PB41 , - , 2 , 7.4 , 999 , double , 100 , , Bus.vacc , CoachBus , 6.2 , 37.5/62.5 , 2.55 , 12 , 3.7 , 10000 , 60 , 40 , 3.7 , 3.7 , 3.7 , , , 3 , 3 , 0 , 0 ,
P32SD , 1 , HeavyBus , PB41 , - , 2 , 7.4 , 999 , single , 100 , , Bus.vacc , CoachBus , 4.6 , 37.5/62.5 , 2.55 , 12 , 3.0 , 10000 , 45 , 0 , , , , 2.2 , 1.4 , 2 , 2 , 0.5 , 0.5 ,
P32SD , 1 , HeavyBus , PB41 , - , 2 , 7.4 , 999 , double , 100 , , Bus.vacc , CoachBus , 5.2 , 37.5/62.5 , 2.55 , 12 , 3.9 , 10000 , 25 , 35 , , , , 3 , 2 , 1 , 2 , 1 , 1 ,
##
P33SD , 1 , HeavyBus , PB42 , 0 , 3 , 7.4 , 999 , single , 100 , , Bus.vacc , CoachBus , 5.0 , 27.3/45.4/27.3 , 2.55 , 14 , 2.7 , 12000 , 104 , 0 , 3 , 3 , 3 , , , 3 , 2 , 0 , 0 ,
P33DD , 1 , HeavyBus , PB42 , 0 , 3 , 7.4 , 999 , double , 100 , , Bus.vacc , CoachBus , 6.3 , 27.3/45.4/27.3 , 2.55 , 14 , 3.7 , 12000 , 78 , 52 , 3.7 , 3.7 , 3.7 , , , 3 , 3 , 0 , 0 ,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment