@@ -201,13 +201,13 @@ static int Main(string[] args)
201
201
ConsoleWriter . WriteEntity ( "Added license:" , license ) ;
202
202
203
203
List < License > licenses = LicenseService . list ( context , null ) ;
204
- ConsoleWriter . WriteList ( "Got the following license templates :" , licenses ) ;
204
+ ConsoleWriter . WriteList ( "Got the following licenses :" , licenses ) ;
205
205
206
206
LicenseService . delete ( context , demoLicenseNumber ) ;
207
207
Console . WriteLine ( "Deleted license" ) ;
208
208
209
209
licenses = LicenseService . list ( context , null ) ;
210
- ConsoleWriter . WriteList ( "Got the following license templates :" , licenses ) ;
210
+ ConsoleWriter . WriteList ( "Got the following licenses :" , licenses ) ;
211
211
212
212
license = LicenseService . create ( context , demoLicenseeNumber , demoLicenseTemplate1_Number , null , newLicense ) ;
213
213
ConsoleWriter . WriteEntity ( "Added license again:" , license ) ;
@@ -234,7 +234,7 @@ static int Main(string[] args)
234
234
Token newToken = new Token ( ) ;
235
235
newToken . tokenType = Constants . Token . TYPE_APIKEY ;
236
236
Token apiKey = TokenService . create ( context , newToken ) ;
237
- ConsoleWriter . WriteEntity ( "Created API Key :" , apiKey ) ;
237
+ ConsoleWriter . WriteEntity ( "Created APIKey :" , apiKey ) ;
238
238
context . apiKey = apiKey . number ;
239
239
240
240
newToken . tokenType = Constants . Token . TYPE_SHOP ;
@@ -259,13 +259,14 @@ static int Main(string[] args)
259
259
#region ****************** Validate
260
260
261
261
ValidationParameters validationParameters = new ValidationParameters ( ) ;
262
+ validationParameters . put ( demoProductModuleNumber , "paramKey" , "paramValue" ) ;
262
263
ValidationResult validationResult = LicenseeService . validate ( context , demoLicenseeNumber , demoProductNumber , demoLicenseeName , validationParameters ) ;
263
264
ConsoleWriter . WriteEntity ( "Validation result for created licensee:" , validationResult ) ;
264
265
265
266
context . securityMode = SecutiryMode . APIKEY_IDENTIFICATION ;
266
267
validationResult = LicenseeService . validate ( context , demoLicenseeNumber , demoProductNumber , demoLicenseeName , validationParameters ) ;
267
268
context . securityMode = SecutiryMode . BASIC_AUTHENTICATION ;
268
- ConsoleWriter . WriteEntity ( "Validation repeated with API Key :" , validationResult ) ;
269
+ ConsoleWriter . WriteEntity ( "Validation repeated with APIKey :" , validationResult ) ;
269
270
270
271
#endregion
271
272
0 commit comments