public PrioritySupportUrlOpenCommand(IProcessStarter processStarter, IVersionHelper versionHelper, ILicenseChecker licenseChecker, LicenseKeySyntaxChecker licenseKeySyntaxChecker, Configuration config) : base(processStarter) { _versionHelper = versionHelper; var edition = LicenseValidator.Interface.Tools.StringValueAttribute.GetStringValue(config.Product); var key = licenseChecker.GetSavedLicenseKey().ValueOr(""); var normKey = licenseKeySyntaxChecker.NormalizeLicenseKey(key); Url = BuildUrl(edition, normKey); }
public void NormalizeLicenseKey_ReturnsNormalizedKey(string key, string normalizedKey) { Assert.AreEqual(normalizedKey, _licenseKeySyntaxChecker.NormalizeLicenseKey(key)); }