Exemplo n.º 1
0
        public RemoveTarifCommand(IDatabasePostgre db)
        {
            if (db == null)
            {
                throw new ArgumentNullException("db parameter in RemoveTarifCommand Command cannot be null");
            }

            this.db = db;
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public UpdateTarifCommand(IDatabasePostgre db, IModelsFactory factory)
 {
     this.db      = db;
     this.factory = factory;
 }
Exemplo n.º 4
0
 public EndLoanCommand(IDatabasePostgre db, IModelsFactory factory)
 {
     this.db      = db;
     this.factory = factory;
 }
Exemplo n.º 5
0
 public CreateLoanCommand(IDatabase db, IDatabasePostgre dbP, IModelsFactory factory)
 {
     this.db      = db;
     this.dbP     = dbP;
     this.factory = factory;
 }
Exemplo n.º 6
0
 public TarifDetailsCommand(IDatabasePostgre db)
 {
     this.db = db;
 }
 public ListAllLoansCommand(IDatabasePostgre db)
 {
     this.db = db;
 }
Exemplo n.º 8
0
 public ListAllTarifsCommand(IDatabasePostgre db)
 {
     this.db = db;
 }
Exemplo n.º 9
0
 public ListAllTarifsToPdfCommand(IDatabasePostgre db, CreatePDF pdf)
 {
     this.db  = db;
     this.pdf = pdf;
 }