示例#1
0
 private void CreateLicenseKey(LionLockLicenseKey newSecret)
 {
     _browser.Link(Find.ByText("License Key")).Click();
     _browser.TextField(Find.ById("Items_0__Value")).Value = newSecret.ProductName;
     _browser.TextField(Find.ById("Items_1__Value")).Value = newSecret.LicensedTo;
     _browser.TextField(Find.ById("Items_2__Value")).Value = newSecret.LicenseKey;
     _browser.TextField(Find.ById("Items_3__Value")).Value = newSecret.Notes;
 }
示例#2
0
 private void ConvertKeyFile(Secret secret)
 {
     var newSecret = new LionLockLicenseKey(new SecretServerKeyFile(secret));
     CreateLicenseKey(newSecret);
 }
示例#3
0
 private void ConvertProductLicenceKey(Secret secret)
 {
     var newSecret = new LionLockLicenseKey(new SecretServerProductLicenseKey(secret));
     CreateLicenseKey(newSecret);
 }
示例#4
0
 private void ConvertCertificate(Secret secret)
 {
     var newSecret = new LionLockLicenseKey(new SecretServerCertificate(secret));
     CreateLicenseKey(newSecret);
 }