public Condition NewLicensedCondition(License license) { LicensedConditionImpl condition = new LicensedConditionImpl(); condition.License = license; return(condition); }
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); }