Пример #1
0
        public void Add_SimpleRow_OK()
        {
            Clientes cliente = new Clientes {
                CIF = "000000009", Direccion = "to remove", Nombre = "555555", Mail = "*****@*****.**", FechaEntrada = DateTime.Today, FormaPago = "60 días"
            };

            int result = instance.Add(cliente);

            Assert.Equal(1, result);
        }
Пример #2
0
        /// <summary>
        /// Add a new Entity in DB (EF)
        /// </summary>
        /// <param name="entity"></param>
        /// <returns>number changes in DB</returns>
        public int Add(TEntity entity)
        {
            var result = efRepository.Add(entity);

            return(result);
        }