예제 #1
0
파일: Program.cs 프로젝트: StefanIT/WM
        private static void TestGetAllProductsFromDatabase()
        {
            var context  = new WMContext();
            var response = new EfGetProductsCommand(context).Execute();

            response.Should().NotBeEmpty();
        }
예제 #2
0
 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;
 }