コード例 #1
0
        public RemoveTarifCommand(IDatabasePostgre db)
        {
            if (db == null)
            {
                throw new ArgumentNullException("db parameter in RemoveTarifCommand Command cannot be null");
            }

            this.db = db;
        }
コード例 #2
0
        public CreateTarifCommand(IDatabasePostgre db, IModelsFactory factory)
        {
            if (db == null)
            {
                throw new ArgumentNullException("CreateTarifCommand db parameter cannot be null");
            }

            this.db = db;

            if (factory == null)
            {
                throw new ArgumentNullException("CreateTarifCommand factory parameter cannot be null");
            }

            this.factory = factory;
        }
コード例 #3
0
 public UpdateTarifCommand(IDatabasePostgre db, IModelsFactory factory)
 {
     this.db      = db;
     this.factory = factory;
 }
コード例 #4
0
 public EndLoanCommand(IDatabasePostgre db, IModelsFactory factory)
 {
     this.db      = db;
     this.factory = factory;
 }
コード例 #5
0
 public CreateLoanCommand(IDatabase db, IDatabasePostgre dbP, IModelsFactory factory)
 {
     this.db      = db;
     this.dbP     = dbP;
     this.factory = factory;
 }
コード例 #6
0
 public TarifDetailsCommand(IDatabasePostgre db)
 {
     this.db = db;
 }
コード例 #7
0
 public ListAllLoansCommand(IDatabasePostgre db)
 {
     this.db = db;
 }
コード例 #8
0
 public ListAllTarifsCommand(IDatabasePostgre db)
 {
     this.db = db;
 }
コード例 #9
0
 public ListAllTarifsToPdfCommand(IDatabasePostgre db, CreatePDF pdf)
 {
     this.db  = db;
     this.pdf = pdf;
 }