public void Setup()
        {
            //Arrange
            var optionsSqlite = new DbContextOptionsBuilder <RestauranteHotelContext>()
                                .UseSqlite(SqlLiteDatabaseInMemory.CreateConnection())
                                .Options;

            _dbContext = new RestauranteHotelContext(optionsSqlite);
            _dbContext.Database.EnsureDeleted();
            _dbContext.Database.EnsureCreated();

            _entradaProductoSimpleService = new EntradaProductoSimpleService(
                new UnitOfWork(_dbContext),
                new ProductoSimpleRepository(_dbContext));
        }
        public void Setup()
        {
            var optionsSqlite = new DbContextOptionsBuilder <InventarioContext>()
                                .UseSqlite(SqlLiteDatabaseInMemory.CreateConnection())
                                .Options;

            _dbContext = new InventarioContext(optionsSqlite);
            _dbContext.Database.EnsureDeleted();
            _dbContext.Database.EnsureCreated();
            _productoRepository = new ProductoRepository(_dbContext);

            var mockEmailServer = new Mock <IMailServer>();

            _registrarEntadaProductoService = new RegistrarEntradaProductoService(
                new UnitOfWork(_dbContext),
                _productoRepository
                );
        }