public void GetAvailableExtrasForCategory_WhenCalledWithNonExistingCategory_ReturnsEmptyList()
        {
            var helper = new OrderHelpers(_apiClient);

            var availableExtras = helper.GetAvailableExtrasForCategory("dessert");

            Assert.IsEmpty(availableExtras);
        }
        public void GetAvailableExtrasForCategory_WhenPizzaExtrasRequested_ReturnsListWith4Elements()
        {
            var helper = new OrderHelpers(_apiClient);

            var availableExtras = helper.GetAvailableExtrasForCategory("Pizza");

            Assert.That(availableExtras.Count(), Is.EqualTo(4));
        }
        public void GetAvailableExtrasForCategory_WhenCalledWithEmptyString_ReturnsEmptyList()
        {
            var helper = new OrderHelpers(_apiClient);

            var availableExtras = helper.GetAvailableExtrasForCategory(string.Empty);

            Assert.IsEmpty(availableExtras);
        }
        public void GetAvailableExtrasForCategory_WhenPizzaExtrasRequested_ReturnedListContainsOnlyPizzaExtras()
        {
            var helper = new OrderHelpers(_apiClient);

            var availableExtras = helper.GetAvailableExtrasForCategory("Pizza");

            foreach (var availableExtra in availableExtras)
            {
                if (availableExtra.DishCategory != "Pizza")
                {
                    Assert.Fail();
                }
            }
            Assert.Pass();
        }