public dynamic PlaceOrder(IEnumerable <Cart> cart) //API Endpoint to return placed order in cart
        {
            BookStore bookStore = new BookStore();

            bookStore.AddDummyData();
            return(Cart.PlaceOrder(cart, bookStore));
        }
        public dynamic GetAll() //API Endpoint to return all books
        {
            BookStore bookStore = new BookStore();

            bookStore.AddDummyData();
            return(bookStore.GetAll());
        }
        public async Task <dynamic> GetBooks(string searchString) //API Endpoint to return searched books
        {
            BookStore bookStore = new BookStore();

            bookStore.AddDummyData();
            return(await bookStore.GetBooksAsync(searchString));
        }
Esempio n. 4
0
 public void SetupTest()
 {
     book.AddDummyData();
 }