﻿using System;
using adMoto.Payments.Core.Interfaces;

namespace adMoto.Payments.Core.Data
{
    public partial class PotwierdzeniaEcard : IIdentifiable
    {
        public int Id
        {
            get { return id; }
        }

// ReSharper disable InconsistentNaming
        partial void OnVALIDATIONCODEChanging(string value)
// ReSharper restore InconsistentNaming
        {
            if (string.IsNullOrEmpty(value)) return;

            if (value.Length > 3) throw new ArgumentException("VALIDATIONCODE must be max 3 characters long");
        }
    }
}