You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
506 B
20 lines
506 B
using FluentAssertions.Formatting;
|
|
using Trash.Sonarr.ReleaseProfile;
|
|
|
|
namespace Trash.Tests.ValueFormatters
|
|
{
|
|
public class ProfileDataValueFormatter : IValueFormatter
|
|
{
|
|
public bool CanHandle(object value)
|
|
{
|
|
return value is ProfileData;
|
|
}
|
|
|
|
public string Format(object value, FormattingContext context, FormatChild formatChild)
|
|
{
|
|
var profileData = (ProfileData) value;
|
|
return $"{profileData.Ignored}";
|
|
}
|
|
}
|
|
}
|