public DHCPv6NumericValueScopeProperty( UInt16 optionIdentifier, Int64 value, NumericScopePropertiesValueTypes numericType, DHCPv6ScopePropertyType valueType) : base(optionIdentifier, valueType) { Value = value; NumericType = numericType; }
public void Constructor(UInt16 optionIdentifier, Int64 value, NumericScopePropertiesValueTypes numericType, DHCPv6ScopePropertyType valueType) { var property = new DHCPv6NumericValueScopeProperty(optionIdentifier, value, numericType, valueType); Assert.Equal(valueType, property.ValueType); Assert.Equal(optionIdentifier, property.OptionIdentifier); Assert.Equal(numericType, property.NumericType); Assert.Equal(value, property.Value); var otherProperty = DHCPv6NumericValueScopeProperty.FromRawValue(optionIdentifier, value.ToString(), numericType); Assert.Equal(property, otherProperty); }
public String GetName(DHCPv6ScopePropertyType property) => _localizer[property.ToString()];