* Refactor serverside content editing to support all variance combinations * Fix build errors * Reintroduce the tests ignored by #19060 --------- Co-authored-by: Mads Rasmussen <madsr@hey.com>
33 lines
871 B
C#
33 lines
871 B
C#
using Umbraco.Cms.Core.Models.ContentEditing;
|
|
using Umbraco.Cms.Tests.Common.Builders.Interfaces;
|
|
|
|
namespace Umbraco.Cms.Tests.Common.Builders;
|
|
|
|
public class ContentEditingPropertyValueBuilder<TParent>(TParent parentBuilder)
|
|
: ChildBuilderBase<TParent, PropertyValueModel>(parentBuilder), IWithAliasBuilder, IWithValueBuilder, IWithCultureBuilder
|
|
{
|
|
private string _alias;
|
|
private object? _value;
|
|
private string? _culture;
|
|
|
|
string IWithAliasBuilder.Alias
|
|
{
|
|
get => _alias;
|
|
set => _alias = value;
|
|
}
|
|
|
|
object? IWithValueBuilder.Value
|
|
{
|
|
get => _value;
|
|
set => _value = value;
|
|
}
|
|
|
|
string IWithCultureBuilder.Culture
|
|
{
|
|
get => _culture;
|
|
set => _culture = value;
|
|
}
|
|
|
|
public override PropertyValueModel Build() => new() { Alias = _alias, Value = _value, Culture = _culture };
|
|
}
|