/// <summary>
        /// Creates a new shopping cart instance.
        /// </summary>
        /// <param name="id">The unique id of the shopping cart.</param>
        /// <param name="status">The status of the shopping cart.</param>
        /// <param name="customerId">The unique id of the customer the shopping cart belongs to.</param>
        /// <param name="salesPersonId">The unique id of the corresponding sales person.</param>
        /// <param name="salesPointId">The unique id of the corresponding sales point.</param>
        /// <param name="viewPointId">The unique id of the corresponding view point.</param>
        /// <returns>An <see cref="IShoppingCart"/> instance with the specified attributes.</returns>
        public IShoppingCart CreateShoppingCart(string id, ShoppingCartStatus status, string customerId = "", string salesPersonId = "", string salesPointId = "", string viewPointId = "")
        {
            var shoppingCart = new ShoppingCart()
            {
                Id            = TextConverter.EscapeInvalidXmlChars(id),
                Status        = status.ToString(),
                CustomerId    = TextConverter.EscapeInvalidXmlChars(customerId),
                SalesPersonId = TextConverter.EscapeInvalidXmlChars(salesPersonId),
                SalesPointId  = TextConverter.EscapeInvalidXmlChars(salesPointId),
                ViewPointId   = TextConverter.EscapeInvalidXmlChars(viewPointId),
            };

            return(shoppingCart);
        }
 public String?ConvertNullableFrom(ShoppingCartStatus?value)
 {
     return(value?.ToString());
 }
 public String ConvertFrom(ShoppingCartStatus value)
 {
     return(value.ToString());
 }