コード例 #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
ファイル: ProductController.cs プロジェクト: StefanIT/WM
 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;
 }