mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
update integration test data to use interchange system builder arguments
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
// Mock data
|
||||
import { IEta, IOrderedStop, IRoute, IShuttle, IStop, IPassioSystem } from "../entities/entities";
|
||||
import { ShuttleGetterSetterRepository } from "../repositories/ShuttleGetterSetterRepository";
|
||||
import { InterchangeSystemBuilderArguments } from "../entities/InterchangeSystem";
|
||||
|
||||
const systems: IPassioSystem[] = [
|
||||
export const supportedIntegrationTestSystems: InterchangeSystemBuilderArguments[] = [
|
||||
{
|
||||
id: "1",
|
||||
name: "Chapman University",
|
||||
passioSystemId: "263",
|
||||
},
|
||||
];
|
||||
|
||||
@@ -4327,14 +4329,14 @@ const routes: IRoute[] = [
|
||||
{
|
||||
name: "Red Route",
|
||||
id: "1",
|
||||
systemId: systems[0].id,
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
polylineCoordinates: redRoutePolylineCoordinates,
|
||||
color: "#db2316",
|
||||
},
|
||||
{
|
||||
name: "Teal Route",
|
||||
id: "2",
|
||||
systemId: systems[0].id,
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
polylineCoordinates: tealRoutePolylineCoordinates,
|
||||
color: "#21bdd1",
|
||||
},
|
||||
@@ -4348,7 +4350,7 @@ const stops: IStop[] = [
|
||||
latitude: 33.796001,
|
||||
longitude: -117.8892805,
|
||||
},
|
||||
systemId: systems[0].id,
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
@@ -4357,7 +4359,7 @@ const stops: IStop[] = [
|
||||
latitude: 33.804433,
|
||||
longitude: -117.895966,
|
||||
},
|
||||
systemId: systems[0].id,
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
@@ -4366,7 +4368,7 @@ const stops: IStop[] = [
|
||||
"latitude": 33.793325,
|
||||
"longitude": -117.85281
|
||||
},
|
||||
systemId: systems[0].id,
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
}
|
||||
];
|
||||
|
||||
@@ -4390,19 +4392,19 @@ const orderedStopsForTealRoute: IOrderedStop[] = [
|
||||
routeId: routes[1].id,
|
||||
stopId: stops[0].id,
|
||||
position: 1,
|
||||
systemId: "1",
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
},
|
||||
{
|
||||
routeId: routes[1].id,
|
||||
stopId: stops[1].id,
|
||||
position: 2,
|
||||
systemId: "1",
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
},
|
||||
{
|
||||
routeId: routes[1].id,
|
||||
stopId: stops[2].id,
|
||||
position: 2,
|
||||
systemId: "1",
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -4420,7 +4422,7 @@ const shuttles: IShuttle[] = [
|
||||
longitude: -117.883698,
|
||||
},
|
||||
routeId: routes[0].id,
|
||||
systemId: systems[0].id,
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
orientationInDegrees: 45.91,
|
||||
},
|
||||
{
|
||||
@@ -4431,7 +4433,7 @@ const shuttles: IShuttle[] = [
|
||||
longitude: -117.862825,
|
||||
},
|
||||
routeId: routes[0].id,
|
||||
systemId: systems[0].id,
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
orientationInDegrees: 90.24,
|
||||
}
|
||||
];
|
||||
@@ -4441,25 +4443,25 @@ const etas: IEta[] = [
|
||||
stopId: stops[0].id,
|
||||
shuttleId: shuttles[0].id,
|
||||
secondsRemaining: 12.023,
|
||||
systemId: "1",
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
},
|
||||
{
|
||||
stopId: stops[2].id,
|
||||
shuttleId: shuttles[0].id,
|
||||
secondsRemaining: 600.123,
|
||||
systemId: "1",
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
},
|
||||
{
|
||||
stopId: stops[2].id,
|
||||
shuttleId: shuttles[1].id,
|
||||
secondsRemaining: 172.015,
|
||||
systemId: "1",
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
},
|
||||
{
|
||||
stopId: stops[0].id,
|
||||
shuttleId: shuttles[1].id,
|
||||
secondsRemaining: 710.152,
|
||||
systemId: "1",
|
||||
systemId: supportedIntegrationTestSystems[0].id,
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user