コード例 #1
0
        public void Update_GoodEntiity_ExistsInDB_OK()
        {
            var entity = new Clientes {
                IdCliente = 1519, CIF = "000000009", Direccion = "changeddd", Nombre = "555555", Mail = "*****@*****.**", FechaEntrada = DateTime.Today, FormaPago = "60 días"
            };

            int result = instance.Update(entity);

            Assert.Equal(1, result);
        }
コード例 #2
0
        public int Update(TEntity entity)
        {
            var result = efRepository.Update(entity);

            return(result);
        }