public TestApiController() { controller = new ApiController(); _catalogs = new CatalogsService(); _products = new ProductsSerice(); _cRepo = new CatalogRepo(); _pRepo = new ProductsRepo(); _testCatalog = new Catalog { Name = "Тест" }; _testProduct = new Product { Name = "Тест", CatalogId = 1, Price = 0, Quantity = 0 }; }
public ApiController() { catalogs = new CatalogsService(); products = new ProductsSerice(); }