public void TestGetLicense()
        {
            //setup
            var licenseDocument = new XmlDocument();
            licenseDocument.Load("LicenseGood.xml");
            _mockStore
                .Setup(s => s.Read())
                .Returns(licenseDocument);
            _mockVerifier
                .Setup(v => v.HasValidSignature(licenseDocument))
                .Returns(true);

            var container = new InstalledLicenseContainer(_mockStore.Object, _mockVerifier.Object, _mockLog.Object);

            //act
            var license = container.License;

            //Assert
            Assert.IsNotNull(license);
            Assert.AreNotEqual(License.NoLicense, license);
        }
        public void TestGetLicense_NoLicenseInstalled()
        {
            //setup
            _mockStore
                .Setup(s => s.Read())
                .Returns(null as IXPathNavigable);

            var container = new InstalledLicenseContainer(_mockStore.Object, _mockVerifier.Object, _mockLog.Object);

            //act
            var license = container.License;

            //Assert
            Assert.IsNotNull(license);
            Assert.AreEqual(License.NoLicense, license);
        }