Cootz_PasswordManager/PasswordManager/Validation/Rules/IsNotNullRule.cs
namespace PasswordManager.Validation.Rules;

public class IsNotNullRule<T> : IValidationRule<T>
{
    public string ValidationMessage { get; set; }

    public bool Check(T value) => value is not null;
}