public void InitializeContext()
            {
                this.condition = new ElementPropertyExistsCondition();

                string propertyName = "TestPropertyName";

                this.mockProperty = new Mock<IProperty>();
                this.mockProperty.SetupGet(property => property.Info.Name).Returns(propertyName);
                Mock<IProductElement> mockOwner = new Mock<IProductElement>();
                mockOwner.Setup(owner => owner.Properties).Returns(new IProperty[] { this.mockProperty.Object });
                this.condition.CurrentElement = mockOwner.Object;
                this.condition.PropertyName = propertyName;
            }
 public void InitializeContext()
 {
     this.condition = new ElementPropertyExistsCondition();
 }