public void DeliveryOption_GivenCostAndDays_HaveValuesInXml()
        {
            var deliveryOption = new delivery_option(300, 1);

            var xDeliveryOption = new YmlSerializer().ToXDocument(deliveryOption).Root;

            xDeliveryOption.Should().NotBeNull();
            xDeliveryOption.Should().HaveAttribute("cost", "300");
            xDeliveryOption.Should().HaveAttribute("days", "1");
        }
        public void DeliveryOption_GivenCostAndDaysPeriodAndOrderBefore_HaveValuesInXml()
        {
            var deliveryOption = new delivery_option(cost: 0, workDaysFrom: 5, workDaysTo: 7, orderBefore: 14);

            var xDeliveryOption = new YmlSerializer().ToXDocument(deliveryOption).Root;

            xDeliveryOption.Should().NotBeNull();
            xDeliveryOption.Should().HaveAttribute("cost", "0");
            xDeliveryOption.Should().HaveAttribute("days", "5-7");
            xDeliveryOption.Should().HaveAttribute("order-before", "14");
        }