public void InsertOrUpdate_GoodEntity_Updated_OK() { var entity = new Clientes { IdCliente = 1519, CIF = "000000009", Direccion = "changeddd", Nombre = "555555", Mail = "*****@*****.**", FechaEntrada = DateTime.Today, FormaPago = "60 días" }; int result = instance.InstertOrUpdate(entity); Assert.Equal(1, result); }
public int InstertOrUpdate(TEntity entity) { var result = efRepository.InstertOrUpdate(entity); return(result); }