using System;
using TINK.Model.Repository;
namespace TINK.Model.Connector
{
///
/// Provides information required for copri commands/ query operations.
///
public class Base
{
/// Reference to object which provides access to copri server.
protected ICopriServerBase CopriServer { get; }
/// Gets the merchant id.
protected string MerchantId => CopriServer.MerchantId;
/// Constructs a query base object.
/// Server which implements communication.
/// Object which hold communication objects.
protected Base(
ICopriServerBase p_oCopriServer)
{
CopriServer = p_oCopriServer
?? throw new ArgumentException("Can not instantiate command/ query base- object. Copri server object must never be null or emtpy.");
}
}
}