private static void TestGetAllProductsFromDatabase() { var context = new WMContext(); var response = new EfGetProductsCommand(context).Execute(); response.Should().NotBeEmpty(); }
public ProductController(EfGetProductsCommand getProductsCommand, EfAddProductCommand addProduct, EfGetCategoriesCommand getCategories, EfGetSuppliersCommand getSuppliers, EfGetManufacturersCommand getManufacturers, EfGetProductCommand getProductCommand, EfEditProductCommand editProduct) { _getProductsCommand = getProductsCommand; _addProduct = addProduct; _getCategories = getCategories; _getSuppliers = getSuppliers; _getManufacturers = getManufacturers; _getProductCommand = getProductCommand; _editProduct = editProduct; }