({
getConnectorStatus: () => ({ status: 'Available' }),
idTagLocalAuthorized: () => false,
+ inAcceptedState: () => true,
isConnected: () => true,
logPrefix: () => `[TEST-CS-${id}]`,
sendRequest: () =>
import {
createMockAuthorizationResult,
createMockAuthRequest,
+ createMockAuthServiceTestStation,
createMockOCPPAdapter,
createTestAuthConfig,
} from '../helpers/MockFactories.js'
let mockOCPP20Adapter: OCPPAuthAdapter
beforeEach(() => {
- mockStation = {
- logPrefix: () => '[TEST-CS-001]',
- stationInfo: {
- chargingStationId: 'TEST-CS-001',
- ocppVersion: OCPPVersion.VERSION_201,
- },
- } as unknown as ChargingStation
+ mockStation = createMockAuthServiceTestStation('001', OCPPVersion.VERSION_201)
mockOCPP20Adapter = createMockOCPPAdapter(OCPPVersion.VERSION_201, {
authorizeRemote: () =>