예제 #1
0
        public CustomerPriceController(IMCustomerPriceRepository mCustomerPriceRepository, IMItemRepository mItemRepository)
        {
            Check.Require(mCustomerPriceRepository != null, "mCustomerPriceRepository may not be null");
            Check.Require(mItemRepository != null, "mItemRepository may not be null");

            this._mCustomerPriceRepository = mCustomerPriceRepository;
            this._mitemRepository          = mItemRepository;
        }
예제 #2
0
        public ItemController(IMItemRepository mItemRepository, IMItemCatRepository mItemCatRepository, IMBrandRepository mBrandRepository, IMCustomerPriceRepository mCustomerPriceRepository)
        {
            Check.Require(mItemRepository != null, "mItemRepository may not be null");
            Check.Require(mItemCatRepository != null, "mItemCatRepository may not be null");
            Check.Require(mBrandRepository != null, "mBrandRepository may not be null");
            Check.Require(mCustomerPriceRepository != null, "mCustomerPriceRepository may not be null");

            this._mItemRepository          = mItemRepository;
            this._mItemCatRepository       = mItemCatRepository;
            this._mBrandRepository         = mBrandRepository;
            this._mCustomerPriceRepository = mCustomerPriceRepository;
        }