Esempio n. 1
0
        public async void GetDataAsync_ThreeFilters_OK()
        {
            object filter = new { concepto = "OPERACIONES", PRIORIDAD = 4, Bloque = "INCIDENCIA" };

            IEnumerable <GEHD_INCIDENCIAS> result = await instance.GetDataAsync(filter);

            Assert.NotNull(result);
        }
Esempio n. 2
0
 /// <summary>
 /// Get async Entities in DB from a object filter (equals property with value) (DP)
 /// Example:  new { Name = "Peter", Age = 18 } --> Select * ... Where Name = 'Peter' and Age = 18
 /// </summary>
 /// <param name="filter"></param>
 /// <returns>Task with Entities for this filter</returns>
 public Task <IEnumerable <TEntity> > GetDataAsync(object filter)
 {
     return(dpRepository.GetDataAsync(filter));
 }