Example #1
0
        public async Task <IEnumerable <ViewProduct> > Get()
        {
            var products = await crudOnProducts.GetAllProducts();

            var viewProducts = Mapper.Map <IEnumerable <ViewProduct> >(products);

            return(viewProducts);
        }
        public void ShouldGetAllProducts()
        {
            var products = crudOnProducts.GetAllProducts();

            Assert.NotNull(products);
        }