Exemplo n.º 1
0
        public void CanGetBasket()
        {
            Guid basketId = repo.CreateBasket();
            var  result   = repo.GetBasket(basketId);

            Assert.IsNotNull(result);
        }
        public IHttpActionResult GetBasket(Guid basketId)
        {
            if (basketId == Guid.Empty)
            {
                return(BadRequest("basketId is not valid"));
            }

            var currentBasket = repo.GetBasket(basketId);

            return(Ok(currentBasket));
        }