public ProductController(IGetProductListQuery listQuery, IGetProductDetailsQuery detailsQuery,
                          IUserProductsRepositoryFacade userProductsRepositoryFacade, IUserProductsFactory userProductsFactory)
 {
     _listQuery    = listQuery;
     _detailsQuery = detailsQuery;
     _userProductsRepositoryFacade = userProductsRepositoryFacade;
     _userProductsFactory          = userProductsFactory;
 }
 public ProductsController(
     IGetProductListQuery getProductListQuery,
     IGetProductDetailQuery getProductDetailQuery,
     ICreateProductCommand createProductCommand)
 {
     _getProductListQuery   = getProductListQuery;
     _getProductDetailQuery = getProductDetailQuery;
     _createProductCommand  = createProductCommand;
 }
Ejemplo n.º 3
0
 public ProductController(IGetProductListQuery getProductListQuery, ICreateProductViewModelFactory viewModelFactory,
                          ICreateProductCommand createProductCommand, IDeleteProductCommand deleteProductCommand,
                          IEditProductViewModelFactory editProductViewModelFactory, IUpdateProductCommand updateProductCommand)
 {
     this.getProductListQuery         = getProductListQuery;
     this.viewModelFactory            = viewModelFactory;
     this.createProductCommand        = createProductCommand;
     this.deleteProductCommand        = deleteProductCommand;
     this.editProductViewModelFactory = editProductViewModelFactory;
     this.updateProductCommand        = updateProductCommand;
 }
Ejemplo n.º 4
0
 public ProductController(IGetProductListQuery getProductListQuery)
 {
     _getProductListQuery = getProductListQuery;
 }
 public CreateSaleViewModelFactory(IGetProductListQuery getProductListQuery)
 {
     this.getProductListQuery = getProductListQuery;
 }