(scope: Construct, id: string, props: SwnMicroservicesProps)
| 17 | public readonly orderingMicroservice: NodejsFunction; |
| 18 | |
| 19 | constructor(scope: Construct, id: string, props: SwnMicroservicesProps) { |
| 20 | super(scope, id); |
| 21 | |
| 22 | // product microservices |
| 23 | this.productMicroservice = this.createProductFunction(props.productTable); |
| 24 | // basket microservices |
| 25 | this.basketMicroservice = this.createBasketFunction(props.basketTable); |
| 26 | // ordering Microservice |
| 27 | this.orderingMicroservice = this.createOrderingFunction(props.orderTable); |
| 28 | } |
| 29 | |
| 30 | private createProductFunction(productTable: ITable) : NodejsFunction { |
| 31 | const nodeJsFunctionProps: NodejsFunctionProps = { |
nothing calls this directly
no test coverage detected