public void AddEntiity_SimpleRow_OK() { Clientes cliente = new Clientes { CIF = "000000009", Direccion = "to remove", Nombre = "555555", Mail = "*****@*****.**", FechaEntrada = DateTime.Today, FormaPago = "60 días" }; cliente = instance.AddEntity(cliente); Assert.NotEqual(cliente.IdCliente, default(int)); }
/// <summary> /// Add a new Entity in DB, returns the new entitiy of DB (EF) /// </summary> /// <param name="entity"></param> /// <returns>Enttiy Added with Identity values updated</returns> public TEntity AddEntity(TEntity entity) { var result = efRepository.AddEntity(entity); return(result); }