Example #1
0
        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;
 }
Example #4
0
 public AccountController(IAccountService accountService, ICibertecContext cibertecContext)
 {
     _accountService  = accountService;
     _cibertecContext = cibertecContext;
 }
 public VentasController(ICibertecContext context, INuevaVentaService ventaService)
 {
     _context           = context;
     _nuevaVentaService = ventaService;
 }
Example #6
0
 public CategoriesController(ICibertecContext cibertecContext)
 {
     _cibertecContext = cibertecContext;
 }
Example #7
0
 public ProveedorService(ICibertecContext cibertecContext)
 {
     _cibertecContext = cibertecContext;
 }
Example #8
0
 public ProductsController(ICibertecContext context, IProductService productService)
 {
     _context        = context;
     _productService = productService;
 }
Example #9
0
 public ProveedorController(ICibertecContext context, IProveedorService proveedorService)
 {
     _context          = context;
     _proveedorService = proveedorService;
 }
Example #10
0
 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;
 }