File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77int main (int argc, char * argv[]) {
88 using netlicensing::Product;
9- std::string license_number = " I2C3VN7NA-DEMO" ;
9+ std::string licensee_number = " I2C3VN7NA-DEMO" ;
1010 if (argc > 1 ) {
11- license_number = argv[1 ];
11+ licensee_number = argv[1 ];
1212 }
1313
1414 std::mt19937 gen;
@@ -45,9 +45,9 @@ int main(int argc, char* argv[]) {
4545 products = netlicensing::ProductService::list (ctx, " " );
4646 std::cout << " after delete products count " << products.size () << std::endl;
4747
48- if (!license_number .empty ()) {
49- std::cout << " start validation for " << license_number << std::endl;
50- std::list<netlicensing::ValidationResult> vres = netlicensing::ValidationService::validate (ctx, license_number );
48+ if (!licensee_number .empty ()) {
49+ std::cout << " start validation for " << licensee_number << std::endl;
50+ std::list<netlicensing::ValidationResult> vres = netlicensing::ValidationService::validate (ctx, licensee_number );
5151 std::cout << " got validation results: " << vres.size () << std::endl;
5252 for (auto val_res : vres) {
5353 std::cout << val_res.to_string () << std::endl;
You can’t perform that action at this time.
0 commit comments