Exemplo n.º 1
0
        protected GatewayKeyBase(string key, string name, GatewayKeyType gatewayType)
        {
            if (string.IsNullOrEmpty(key))
            {
                throw new ArgumentNullException(nameof(key));
            }

            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException(nameof(name));
            }

            Key         = key;
            Name        = name;
            IsActive    = true;
            GatewayType = gatewayType;
        }
Exemplo n.º 2
0
 public GatewayKey(string key, string name, GatewayKeyType gatewayType, bool isActive = false)
     : base(key, name, gatewayType)
 {
     IsActive = isActive;
 }