indexer specific setting validation

This commit is contained in:
kay.one
2013-08-22 01:08:43 -07:00
parent 227e13d858
commit e4fc0c57b3
11 changed files with 93 additions and 26 deletions
+7 -13
View File
@@ -1,26 +1,20 @@
namespace NzbDrone.Core.Indexers
using FluentValidation.Results;
namespace NzbDrone.Core.Indexers
{
public interface IIndexerSetting
{
bool IsValid { get; }
ValidationResult Validate();
}
public class NullSetting : IIndexerSetting
{
public static NullSetting Instance = new NullSetting();
public static readonly NullSetting Instance = new NullSetting();
private NullSetting()
public ValidationResult Validate()
{
}
public bool IsValid
{
get
{
return true;
}
return new ValidationResult();
}
}
}