private void InitializeNumberPropertyChangeAction() { _propertyChangeAction = new PropertyChangeAction() { InstancePropertyTypeId = DefaultNumberInstancePropertyTypeId, PropertyValue = DefaultNumberValue }; _customPropertyTypes = new List <WorkflowPropertyType>() { new NumberPropertyType() { InstancePropertyTypeId = DefaultNumberInstancePropertyTypeId, PrimitiveType = PropertyPrimitiveType.Number } }; _executionParameters = new ExecutionParameters( 1, new VersionControlArtifactInfo(), null, _customPropertyTypes, _saveRepositoryMock.Object, null, null, new List <IPropertyValidator>(), _reuseValidatorMock.Object); }
public void ValidateAction_UserPropertyAsBaseClassPropertyChangeAction_ReturnsFailureResult() { // Arrange InitializeUserPropertyChangeAction(); _propertyChangeAction = new PropertyChangeAction() { InstancePropertyTypeId = DefaultUserInstancePropertyTypeId }; // Act var result = _propertyChangeAction.ValidateAction(_executionParameters); // Assert Assert.IsNotNull(result); }
private void InitializeChoicePropertyChangeAction() { DefaultChoicePropertyType = new ChoicePropertyType() { InstancePropertyTypeId = DefaultChoiceInstancePropertyTypeId, PrimitiveType = PropertyPrimitiveType.Choice }; _propertyChangeAction = new PropertyChangeAction() { InstancePropertyTypeId = DefaultChoiceInstancePropertyTypeId }; _customPropertyTypes = new List <WorkflowPropertyType>() { DefaultChoicePropertyType }; }