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; }
public GatewayKey(string key, string name, GatewayKeyType gatewayType, bool isActive = false) : base(key, name, gatewayType) { IsActive = isActive; }