Exemplo n.º 1
0
        public async void AddAsync_SimpleRow_OK()
        {
            Clientes cliente = new Clientes {
                CIF = "000000009", Direccion = "to remove", Nombre = "555555", Mail = "*****@*****.**", FechaEntrada = DateTime.Today, FormaPago = "60 días"
            };

            int result = await instance.AddAsync(cliente);

            Assert.Equal(1, result);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Add Async a new Entity in DB (EF)
        /// </summary>
        /// <param name="entity"></param>
        /// <returns>number changes in DB</returns>
        public Task <int> AddAsync(TEntity entity)
        {
            var result = efRepository.AddAsync(entity);

            return(result);
        }