public GetProductsBundlesQueryTests()
        {
            _dapperService = A.Fake <DapperService>();

            _getProductBundlesQuery =
                new GetProductBundlesQuery(A.Fake <IOptions <ApplicationConfiguration> >(), _dapperService);
        }
Example #2
0
        public ProductsControllersTests()
        {
            _getProductsQuery    = A.Fake <GetProductsQuery>();
            _searchProductsQuery = A.Fake <SearchProductsQuery>();
            _getProductBundles   = A.Fake <GetProductBundlesQuery>();

            _productController = new ProductsController(_getProductsQuery, _searchProductsQuery, _getProductBundles);
        }
Example #3
0
 public ProductsController(GetProductsQuery getProductsQuery, SearchProductsQuery searchProductsQuery, GetProductBundlesQuery getProductBundlesQuery)
 {
     _getProductsQuery       = getProductsQuery;
     _searchProductsQuery    = searchProductsQuery;
     _getProductBundlesQuery = getProductBundlesQuery;
 }