Ejemplo n.º 1
0
        /// <summary>
        ///A test for GetAll
        ///</summary>
        public void GetAllTestHelper <T, V>()
        {
            ServiceBase <T, V> target = CreateServiceBase <T, V>();
            ICollection        actual;

            actual = target.GetAll();
            long count = target.GetCount(new FilterExpression());

            Assert.AreEqual(count, actual.Count);
        }
Ejemplo n.º 2
0
 public IEnumerable <TEntity> GetAll()
 {
     return(_serviceBase.GetAll());
 }
Ejemplo n.º 3
0
        public ICollection <TModel> FetchAll()
        {
            var entities = ServiceBase.GetAll();

            return(this.Mapper.Map <ICollection <TModel> >(entities.ToList()));
        }