Files
Umbraco-CMS/tests/Umbraco.Tests.Common/Builders/ContentEditingPropertyValueBuilder.cs
Kenn Jacobsen 2cf28271cd Service refactoring to "fully" enable segments (#19114)
* 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>
2025-04-23 14:54:51 +02:00

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 };
}