File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/extensibility/facades/transport Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ describe("AppStringProcessor", function () {
182
182
183
183
test ( "device onboarding with a password protected Token" , async function ( ) {
184
184
const deviceResult = await runtime1Session . transportServices . devices . createDevice ( { } ) ;
185
- const tokenResult = await runtime1Session . transportServices . devices . getDeviceOnboardingToken ( {
185
+ const tokenResult = await runtime1Session . transportServices . devices . createDeviceOnboardingToken ( {
186
186
id : deviceResult . value . id ,
187
187
passwordProtection : { password : "password" }
188
188
} ) ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export class DevicesFacade {
27
27
@Inject private readonly updateDeviceUseCase : UpdateDeviceUseCase ,
28
28
@Inject private readonly deleteDeviceUseCase : DeleteDeviceUseCase ,
29
29
@Inject private readonly getDeviceOnboardingInfoUseCase : GetDeviceOnboardingInfoUseCase ,
30
- @Inject private readonly getDeviceOnboardingTokenUseCase : CreateDeviceOnboardingTokenUseCase ,
30
+ @Inject private readonly createDeviceOnboardingTokenUseCase : CreateDeviceOnboardingTokenUseCase ,
31
31
@Inject private readonly setCommunicationLanguageUseCase : SetCommunicationLanguageUseCase
32
32
) { }
33
33
@@ -47,8 +47,8 @@ export class DevicesFacade {
47
47
return await this . getDeviceOnboardingInfoUseCase . execute ( request ) ;
48
48
}
49
49
50
- public async getDeviceOnboardingToken ( request : CreateDeviceOnboardingTokenRequest ) : Promise < Result < TokenDTO , ApplicationError > > {
51
- return await this . getDeviceOnboardingTokenUseCase . execute ( request ) ;
50
+ public async createDeviceOnboardingToken ( request : CreateDeviceOnboardingTokenRequest ) : Promise < Result < TokenDTO , ApplicationError > > {
51
+ return await this . createDeviceOnboardingTokenUseCase . execute ( request ) ;
52
52
}
53
53
54
54
public async updateDevice ( request : UpdateDeviceRequest ) : Promise < Result < DeviceDTO , ApplicationError > > {
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ describe("LoadItemFromTruncatedReference", () => {
166
166
} ) ;
167
167
168
168
test ( "loads the DeviceOnboardingInfo with the truncated reference" , async ( ) => {
169
- const deviceOnboardingInfoReference = ( await sTransportServices . devices . getDeviceOnboardingToken ( { id : device . id } ) ) . value . truncatedReference ;
169
+ const deviceOnboardingInfoReference = ( await sTransportServices . devices . createDeviceOnboardingToken ( { id : device . id } ) ) . value . truncatedReference ;
170
170
171
171
const result = await sTransportServices . account . loadItemFromTruncatedReference ( { reference : deviceOnboardingInfoReference } ) ;
172
172
@@ -176,7 +176,7 @@ describe("LoadItemFromTruncatedReference", () => {
176
176
177
177
test ( "loads the DeviceOnboardingInfo with the truncated reference including a profile name" , async ( ) => {
178
178
const profileName = "aProfileName" ;
179
- const deviceOnboardingInfoReference = ( await sTransportServices . devices . getDeviceOnboardingToken ( { id : device . id , profileName } ) ) . value . truncatedReference ;
179
+ const deviceOnboardingInfoReference = ( await sTransportServices . devices . createDeviceOnboardingToken ( { id : device . id , profileName } ) ) . value . truncatedReference ;
180
180
181
181
const result = await sTransportServices . account . loadItemFromTruncatedReference ( { reference : deviceOnboardingInfoReference } ) ;
182
182
You can’t perform that action at this time.
0 commit comments