public void Add_GoodParameter_OK() { GEHD_INCIDENCIAS incidencia = new GEHD_INCIDENCIAS { //IdIncidencia = 99999, Bloque = "b", ComputaEstadisticas = "s", Concepto = "c", Estado = "e", FechaAlta = DateTime.Today, FechaCierre = DateTime.Today, FechaCierreCECA = DateTime.Today, FechaEstimada = DateTime.Today, FechaModificacion = DateTime.Today, FechaReportadoInterno = DateTime.Today, FechaReportadoProveedor = DateTime.Today, IdCorteServicio = 1, IdDepartamento = "u", IdEntidad = "0000", IdProducto = 1, Incidencia = "i", IncidenciaCodCECA = "C", IncidenciaPS = "p", NombreContacto = "n", Persona = "p", PersonaCierre = "p", Prioridad = "p", Respuesta = "r", StatusProveedor = "s", SubEntidad = "s", Subject = "s", TextoBusquedaRapida = "s" }; int result = instance.Add(incidencia); Assert.Equal(1, result); }
/// <summary> /// Add a Sequence of items in BulkInsert (DP) /// </summary> /// <param name="entities">Sequence of entities</param> /// <returns>number changes in DB</returns> public int Add(IEnumerable <TEntity> entities) { var result = dpRepository.Add(entities); return(result); }