Exemplo n.º 1
0
        public CustomerController(IMCustomerRepository mCustomerRepository, IRefAddressRepository refAddressRepository, IRefPersonRepository refPersonRepository)
        {
            Check.Require(mCustomerRepository != null, "mCustomerRepository may not be null");
            Check.Require(refAddressRepository != null, "refAddressRepository may not be null");
            Check.Require(refPersonRepository != null, "refPersonRepository may not be null");

            this._mCustomerRepository  = mCustomerRepository;
            this._refAddressRepository = refAddressRepository;
            this._refPersonRepository  = refPersonRepository;
        }
        public EmployeeController(IMEmployeeRepository mEmployeeRepository, IRefAddressRepository refAddressRepository, IRefPersonRepository refPersonRepository, IMDepartmentRepository mDepartmentRepository)
        {
            Check.Require(mEmployeeRepository != null, "mEmployeeRepository may not be null");
            Check.Require(refAddressRepository != null, "refAddressRepository may not be null");
            Check.Require(refPersonRepository != null, "refPersonRepository may not be null");
            Check.Require(mDepartmentRepository != null, "mDepartmentRepository may not be null");

            this._mEmployeeRepository   = mEmployeeRepository;
            this._refAddressRepository  = refAddressRepository;
            this._refPersonRepository   = refPersonRepository;
            this._mDepartmentRepository = mDepartmentRepository;
        }