public ProductServiceTests() { var options = new DbContextOptionsBuilder <CibertecContext>() .UseInMemoryDatabase(databaseName: "cibertec_test") .Options; // instanciar el contexto _cibertecContext = new CibertecContext(options); // instranciar el servicio _productService = new ProductService(_cibertecContext); }
public NuevaVentaService(ICibertecContext cibertecContext) { _cibertecContext = cibertecContext; }
public DatabaseController(ICibertecContext cibertecContext) { _cibertecContext = cibertecContext; }
public AccountController(IAccountService accountService, ICibertecContext cibertecContext) { _accountService = accountService; _cibertecContext = cibertecContext; }
public VentasController(ICibertecContext context, INuevaVentaService ventaService) { _context = context; _nuevaVentaService = ventaService; }
public CategoriesController(ICibertecContext cibertecContext) { _cibertecContext = cibertecContext; }
public ProveedorService(ICibertecContext cibertecContext) { _cibertecContext = cibertecContext; }
public ProductsController(ICibertecContext context, IProductService productService) { _context = context; _productService = productService; }
public ProveedorController(ICibertecContext context, IProveedorService proveedorService) { _context = context; _proveedorService = proveedorService; }
public ProductoService(ICibertecContext cibertecContext) { _cibertecContext = cibertecContext; }
public AccountService(ICibertecContext context) { _context = context; }
public ClienteService(ICibertecContext cibertecContext) { _cibertecContext = cibertecContext; }
public ClientesController(ICibertecContext context, IClienteService clienteService) { _context = context; _clienteService = clienteService; }