Esempio n. 1
0
        public Condition NewLicensedCondition(License license)
        {
            LicensedConditionImpl condition = new LicensedConditionImpl();

            condition.License = license;
            return(condition);
        }
Esempio n. 2
0
        public void TestNewLicensedCondition()
        {
            License   license   = MockLicensingFactory.NewMockLicense();
            Condition condition = LicensingFactory.NewLicensedCondition(license);

            Assert.IsNotNull(condition);
            Assert.IsInstanceOf(typeof(LicensedConditionImpl), condition);
            LicensedConditionImpl conditionImpl = (LicensedConditionImpl)condition;

            Assert.AreEqual(license, conditionImpl.License);
        }