1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-12 11:15:43 +02:00
Sonarr/src/NzbDrone.Test.Common/TestValidator.cs
Mark McDowall 41f769790d Fix issue adding a series when TitleSlug for another series is null
Fixed: Adding a series when an existing series is has a null slug
Closes #1840
2017-04-11 17:57:29 -07:00

17 lines
338 B
C#

using System;
using FluentValidation;
namespace NzbDrone.Test.Common
{
public class TestValidator<T> : InlineValidator<T>
{
public TestValidator(params Action<TestValidator<T>>[] actions)
{
foreach (var action in actions)
{
action(this);
}
}
}
}