コード例 #1
0
        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);
        }
コード例 #2
0
 public void NormalizeLicenseKey_ReturnsNormalizedKey(string key, string normalizedKey)
 {
     Assert.AreEqual(normalizedKey, _licenseKeySyntaxChecker.NormalizeLicenseKey(key));
 }