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); }