Esempio n. 1
0
        public async Task WhenISendAnUpdateItemRequest()
        {
            updateItemRequest = new MenuItemBuilder()
                                .WithName("Updated item name")
                                .WithDescription("Updated item description")
                                .WithPrice(4.5)
                                .WithAvailablity(true)
                                .Build();
            String path =
                $"{MenuSteps.menuPath}{existingMenuId}{categoryPath}{existingCategoryId}{itemPath}{existingItemId}";

            lastResponse = await HttpRequestFactory.Put(baseUrl, path, updateItemRequest);
        }
Esempio n. 2
0
 public void GivenIHaveSpecfiedAFullItem()
 {
     createItemRequest = new MenuItemBuilder()
                         .SetDefaultValues("Yumido Test Item")
                         .Build();
 }