public void Can_set_formatted_value() { var entity = new xts_entity(); var accessor = new EntityAccessor <xts_entity>(entity); accessor.SetFormattedValue("xts_attribute", "formatted-value-1234"); Assert.Equal("formatted-value-1234", entity.FormattedValues["xts_attribute"]); }
public void Can_set_formatted_value_generic() { var entity = new xts_entity(); var accessor = new EntityAccessor <xts_entity>(entity); accessor.SetFormattedValue(e => e.xts_optionsetvalue, "formatted-value-4567"); Assert.Equal("formatted-value-4567", entity.FormattedValues["xts_optionsetvalue"]); }