namespace Umbraco.Cms.Core.Models.PublishedContent
{
///
/// Provides a noop implementation for .
///
///
/// This is for tests etc - does not implement fallback at all.
///
public class NoopPublishedValueFallback : IPublishedValueFallback
{
///
public bool TryGetValue(IPublishedProperty property, string? culture, string? segment, Fallback fallback, object? defaultValue, out object? value)
{
value = default;
return false;
}
///
public bool TryGetValue(IPublishedProperty property, string? culture, string? segment, Fallback fallback, T? defaultValue, out T? value)
{
value = default;
return false;
}
///
public bool TryGetValue(IPublishedElement content, string alias, string? culture, string? segment, Fallback fallback, object? defaultValue, out object? value)
{
value = default;
return false;
}
///
public bool TryGetValue(IPublishedElement content, string alias, string? culture, string? segment, Fallback fallback, T? defaultValue, out T? value)
{
value = default;
return false;
}
///
public bool TryGetValue(IPublishedContent content, string alias, string? culture, string? segment, Fallback fallback, object? defaultValue, out object? value, out IPublishedProperty? noValueProperty)
{
value = default;
noValueProperty = default;
return false;
}
///
public bool TryGetValue(IPublishedContent content, string alias, string? culture, string? segment, Fallback fallback, T defaultValue, out T? value, out IPublishedProperty? noValueProperty)
{
value = default;
noValueProperty = default;
return false;
}
}
}