<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><language>en</language><title>Blog posts by Green Man Gaming</title> <link>https://world.optimizely.com/blogs/green-man-gaming/</link><description></description><ttl>60</ttl><generator>Optimizely World</generator><item> <title>Letters From The Engine Room: TOTD Unit Testing CartHelper</title>            <link>http://blog.playfire.com/2015/03/letters-from-engine-room-totd-unit.html</link>            <description>&lt;a href=&quot;http://1.bp.blogspot.com/-s68LR8CPBVw/VPWRYIJiC0I/AAAAAAAAAJM/kH3RURFyceY/s1600/GMGPF_Blog_Banner.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-s68LR8CPBVw/VPWRYIJiC0I/AAAAAAAAAJM/kH3RURFyceY/s1600/GMGPF_Blog_Banner.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;TOTD stands for think of the developer and I feel its something that the commerce team should have as an objective. As a company, we are new to Episerver Commerce but it seems that we have to do way too much work to unit test our commerce code. This article will describe how we went about unit testing update quantity cart code. So lets look at the code to update the quantity of an item in the basket.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;csharpcode&quot;&gt;&lt;pre style=&quot;background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; color: black; overflow-x: auto; overflow-y: hidden; padding: 0px; text-align: left; word-wrap: normal;&quot;&gt;&lt;span class=&quot;type&quot;&gt;var&lt;/span&gt; lineItem = &lt;span class=&quot;type&quot;&gt;CartHelper&lt;/span&gt;&lt;br /&gt;                .LineItems&lt;br /&gt;                .FirstOrDefault(l =&amp;gt; l.CatalogEntryId == skuId);&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;if&lt;/span&gt; (lineItem == &lt;span class=&quot;keyword&quot;&gt;null&lt;/span&gt;)&lt;br /&gt;    &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;lineItem.Quantity = quantity;  &lt;br /&gt;&lt;span class=&quot;type&quot;&gt;CartHelper&lt;/span&gt;.AcceptChanges();&lt;!--[if IE]&gt;&lt;br /&gt;&lt;br /&gt;&lt;![endif]--&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;Ok, so we need to mock CartHelper, but its a static method, so we need to write a cart wrapper and inject that into the class we want to test.&lt;br /&gt;&lt;a name=&quot;more&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class=&quot;csharpcode&quot;&gt;&lt;pre style=&quot;background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; color: black; overflow-x: auto; overflow-y: hidden; padding: 0px; text-align: left; word-wrap: normal;&quot;&gt;&lt;span class=&quot;comment&quot;&gt;// Copyright 2015 Green Man Gaming&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;using&lt;/span&gt; System.Collections.Generic;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;using&lt;/span&gt; System.Linq;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;using&lt;/span&gt; Mediachase.Commerce.Catalog.Objects;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;using&lt;/span&gt; Mediachase.Commerce.Orders;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;using&lt;/span&gt; Mediachase.Commerce.Website.Helpers;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;namespace&lt;/span&gt; GMGShop.Domain.Wrappers&lt;br /&gt;{&lt;br /&gt;    &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Cart Helper Wrapper so that we can test&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;CartHelperWrapper&lt;/span&gt; : &lt;span class=&quot;type&quot;&gt;ICartHelperWrapper&lt;/span&gt;&lt;br /&gt;    {&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;CartHelper&lt;/span&gt; cartHelper;&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets a value indicating whether this instance is empty.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;c&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/c&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; if this instance is empty; otherwise, &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;c&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/c&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;bool&lt;/span&gt; IsEmpty&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; cartHelper.IsEmpty;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets the total.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The total.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;decimal&lt;/span&gt; Total&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; cartHelper.Cart.Total;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Sets the provider id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The provider id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; ProviderId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                cartHelper.Cart.ProviderId = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets the line items.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The line items.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;IEnumerable&lt;/span&gt;&amp;lt;&lt;span class=&quot;type&quot;&gt;ILineItemWrapper&lt;/span&gt;&amp;gt; LineItems&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; cartHelper&lt;br /&gt;                    .&lt;span class=&quot;type&quot;&gt;LineItems&lt;/span&gt;&lt;br /&gt;                    .Select(lineItem =&amp;gt; &lt;span class=&quot;keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;LineItemWrapper&lt;/span&gt;(lineItem));&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Initializes a new instance of the &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;see cref=&quot;T:Mediachase.Commerce.Website.Helpers.CartHelper&quot;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; class.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;param name=&quot;cartName&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The cart Name.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;returns&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;see cref=&quot;ICartHelperWrapper&quot;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/returns&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;ICartHelperWrapper&lt;/span&gt; Create(&lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; cartName)&lt;br /&gt;        {&lt;br /&gt;            cartHelper = &lt;span class=&quot;keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;CartHelper&lt;/span&gt;(cartName);&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;this&lt;/span&gt;;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Accepts the changes.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;exception cref=&quot;T:Mediachase.Commerce.Orders.Exceptions.OrderException&quot;&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;If a cart with same CustomerId, Name, and MarketId already exist.&lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/exception&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;void&lt;/span&gt; AcceptChanges()&lt;br /&gt;        {&lt;br /&gt;            cartHelper.Cart.AcceptChanges();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Adds the entry with default warehouse code&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;param name=&quot;fullEntry&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The full Entry.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;param name=&quot;quantity&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;param name=&quot;fixedQuantity&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; If true, lineitem&#39;s qty will be set to &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;paramref name=&quot;quantity&quot;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; value. Otherwise, &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;paramref name=&quot;quantity&quot;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; will be added to the current line item&#39;s qty value.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;returns&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The line item.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/returns&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;LineItem&lt;/span&gt; AddEntry(&lt;span class=&quot;type&quot;&gt;Entry&lt;/span&gt; fullEntry, &lt;span class=&quot;keyword&quot;&gt;int&lt;/span&gt; quantity, &lt;span class=&quot;keyword&quot;&gt;bool&lt;/span&gt; fixedQuantity)&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; cartHelper.AddEntry(fullEntry, quantity, fixedQuantity);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Runs the workflow and generates the error message for all the warnings.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;param name=&quot;name&quot;&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;The name.&lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;void&lt;/span&gt; RunWorkFlow(&lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; name)&lt;br /&gt;        {&lt;br /&gt;            cartHelper.RunWorkflow(name);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Deletes the current basket instance from the database.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;void&lt;/span&gt; Delete()&lt;br /&gt;        {&lt;br /&gt;            cartHelper.Delete();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;!--[if IE]&gt;&lt;br /&gt;&lt;br /&gt;&lt;![endif]--&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;You can see that we have to also wrap the line items in its own wrapper, so lets do that.  &lt;style type=&quot;text/css&quot;&gt;.csharpcode, .csharpcode pre {  font-size: 13.3333px;  font-width: 400;  color: black;  font-family: &quot;Courier New&quot;; } .csharpcode pre { margin: 0px; } .csharpcode .comment { color: #008000; } .csharpcode .comment2 { color: #808080; } .csharpcode .type { color: #2B91AF; } .csharpcode .keyword { color: #0000FF; } .csharpcode .string { color: #A31515; } .csharpcode .preproc { color: #0000FF; } &lt;/style&gt;&lt;br /&gt;&lt;div class=&quot;csharpcode&quot;&gt;&lt;br /&gt;&lt;pre style=&quot;background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; color: black; overflow-x: auto; overflow-y: hidden; padding: 0px; text-align: left; word-wrap: normal;&quot;&gt;&lt;span class=&quot;comment&quot;&gt;// Copyright 2015 Green Man Gaming&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;using&lt;/span&gt; System.Runtime.Serialization;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;using&lt;/span&gt; Mediachase.Commerce.Orders;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;namespace&lt;/span&gt; GMGShop.Domain.Wrappers&lt;br /&gt;{&lt;br /&gt;    &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;LineItemWrapper&lt;/span&gt; : &lt;span class=&quot;type&quot;&gt;ILineItemWrapper&lt;/span&gt;&lt;br /&gt;    {&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;readonly&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;LineItem&lt;/span&gt; lineItem;&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Initializes a new instance of the &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;see cref=&quot;LineItemWrapper&quot;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; class.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;param name=&quot;lineItem&quot;&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; LineItemWrapper(&lt;span class=&quot;type&quot;&gt;LineItem&lt;/span&gt; lineItem)&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;this&lt;/span&gt;.lineItem = lineItem;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Initializes a new instance of the &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;see cref=&quot;LineItemWrapper&quot;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; class.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; LineItemWrapper()&lt;br /&gt;        {&lt;br /&gt;            lineItem = &lt;span class=&quot;keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;LineItem&lt;/span&gt;();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets the list of discounts that were applied to that particular line item.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The discounts.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;LineItemDiscountCollection&lt;/span&gt; Discounts&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.Discounts;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets the parent Order Form.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The parent.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;OrderForm&lt;/span&gt; Parent&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.Parent;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets the line item id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The line item id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;int&lt;/span&gt; LineItemId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.LineItemId;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the order form id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The order form id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;int&lt;/span&gt; OrderFormId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.OrderFormId;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.OrderFormId = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the order group id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The order group id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;int&lt;/span&gt; OrderGroupId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.OrderGroupId;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.OrderGroupId = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the catalog.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The catalog.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; Catalog&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.Catalog;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.Catalog = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the catalog node.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The catalog node.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; CatalogNode&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.CatalogNode;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.CatalogNode = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the parent catalog entry id. Typically for Product/Sku(Variation) types of products, this will be a product code.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The parent catalog entry id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; ParentCatalogEntryId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.ParentCatalogEntryId;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.ParentCatalogEntryId = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the catalog entry code.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The catalog entry id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; CatalogEntryId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.CatalogEntryId;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.CatalogEntryId = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; Quantity&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.Quantity;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.Quantity = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the min quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The min quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; MinQuantity&lt;br /&gt;        {&lt;br /&gt;          &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;          {&lt;br /&gt;              &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.MinQuantity;&lt;br /&gt;          }&lt;br /&gt;&lt;br /&gt;          &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;          {&lt;br /&gt;              lineItem.MinQuantity = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;          }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the max quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The max quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; MaxQuantity&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.MaxQuantity;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.MaxQuantity = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the placed price.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The placed price.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; PlacedPrice&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.PlacedPrice;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.PlacedPrice = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the list price. The price that the item is listed in the catalog.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The list price.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; ListPrice&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.ListPrice;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.ListPrice = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the line item discount amount.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The line item discount amount.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; LineItemDiscountAmount&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.LineItemDiscountAmount;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.LineItemDiscountAmount = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the order level discount amount.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The order level discount amount.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; OrderLevelDiscountAmount&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.OrderLevelDiscountAmount;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.OrderLevelDiscountAmount = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the shipping address name.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The shipping address id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; ShippingAddressId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.ShippingAddressId;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.ShippingAddressId = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the name of the shipping method.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The name of the shipping method.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; ShippingMethodName&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.ShippingMethodName;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.ShippingMethodName = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the shipping method id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The shipping method id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Guid&lt;/span&gt; ShippingMethodId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.ShippingMethodId;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.ShippingMethodId = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the extended price.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The extended price.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; ExtendedPrice&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.ExtendedPrice;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.ExtendedPrice = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the description.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The description.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; Description&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.Description;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.&lt;span class=&quot;type&quot;&gt;Description&lt;/span&gt; = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the status.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The status.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; Status&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.Status;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.&lt;span class=&quot;type&quot;&gt;Status&lt;/span&gt; = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the name of the display.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The name of the display.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; DisplayName&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.DisplayName;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.&lt;span class=&quot;type&quot;&gt;DisplayName&lt;/span&gt; = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets a value indicating whether [allow backorders and preorders]&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;c&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/c&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; if [allow backorders and preorders]; otherwise, &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;c&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/c&amp;gt;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;bool&lt;/span&gt; AllowBackordersAndPreorders&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.AllowBackordersAndPreorders;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.AllowBackordersAndPreorders = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the in stock quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The in stock quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; InStockQuantity&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.InStockQuantity;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.InStockQuantity = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the preorder quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The preorder quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; PreorderQuantity&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.PreorderQuantity;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.PreorderQuantity = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the backorder quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The backorder quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; BackorderQuantity&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.BackorderQuantity;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.BackorderQuantity = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the inventory status.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The inventory status.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;int&lt;/span&gt; InventoryStatus&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.InventoryStatus;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.InventoryStatus = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the line item ordering.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The line item ordering.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;DateTime&lt;/span&gt; LineItemOrdering&lt;br /&gt;        {&lt;br /&gt;          &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;          {&lt;br /&gt;              &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.LineItemOrdering;&lt;br /&gt;          }&lt;br /&gt;&lt;br /&gt;          &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;          {&lt;br /&gt;              lineItem.LineItemOrdering = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;          }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the configuration id. The external component configuration id, used by bundle, kits and other&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;            combination products.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The configuration id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; ConfigurationId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.ConfigurationId;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.ConfigurationId = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the provider id. Used to identify the line item in the extrnal system.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The provider id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; ProviderId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.ProviderId;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.ProviderId = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the RMA item reason. (&quot;Corrupted&quot;, &quot;Mismatch&quot; etc.)&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The rma reason.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; ReturnReason&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.ReturnReason;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.ReturnReason = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the returned in stock quantity&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The return quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; ReturnQuantity&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.ReturnQuantity;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.ReturnQuantity = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the identity orig line item for RMA line item&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The rma orig line item id.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;int&lt;/span&gt;? OrigLineItemId&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.OrigLineItemId;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.OrigLineItemId = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the warehouse code&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The warehouse code.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;string&lt;/span&gt; WarehouseCode&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.WarehouseCode;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.WarehouseCode = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets a value indicating whether if&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; the inventory for this item has already been allocated from&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; the inventory system&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The is inventory allocated.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;bool&lt;/span&gt; IsInventoryAllocated&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.IsInventoryAllocated;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.IsInventoryAllocated = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets or sets the old quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The old quantity.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt; OldQuantity&lt;br /&gt;        {&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;get&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; lineItem.OldQuantity;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class=&quot;keyword&quot;&gt;set&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                lineItem.OldQuantity = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Sets the parent.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;param name=&quot;parent&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The parent.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;void&lt;/span&gt; SetParent(&lt;span class=&quot;keyword&quot;&gt;object&lt;/span&gt; parent)&lt;br /&gt;        {&lt;br /&gt;            lineItem.SetParent(parent);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Accepts the changes.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;void&lt;/span&gt; AcceptChanges()&lt;br /&gt;        {&lt;br /&gt;            lineItem.AcceptChanges();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Gets the object data.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;param name=&quot;info&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The info.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;param name=&quot;context&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; The context.&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;void&lt;/span&gt; GetObjectData(&lt;span class=&quot;type&quot;&gt;SerializationInfo&lt;/span&gt; info, &lt;span class=&quot;type&quot;&gt;StreamingContext&lt;/span&gt; context)&lt;br /&gt;        {&lt;br /&gt;            lineItem.GetObjectData(info, context);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; Deletes the object data&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;comment2&quot;&gt;///&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;span class=&quot;comment2&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class=&quot;keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;void&lt;/span&gt; Delete()&lt;br /&gt;        {&lt;br /&gt;            lineItem.Delete();&lt;br /&gt;        }&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;         &lt;br /&gt;&lt;span class=&quot;type&quot;&gt;So&lt;/span&gt; now we can &lt;span class=&quot;keyword&quot;&gt;finally&lt;/span&gt; write &lt;span class=&quot;type&quot;&gt;our&lt;/span&gt; test.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;CartWrapper&lt;/span&gt; = &lt;span class=&quot;keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Mock&lt;/span&gt;&amp;lt;&lt;span class=&quot;type&quot;&gt;ICartHelperWrapper&lt;/span&gt;&amp;gt;();&lt;br /&gt;&lt;br /&gt;factoryMock.Setup(x =&amp;gt; x.GetCartHelper()).Returns(&lt;span class=&quot;type&quot;&gt;CartWrapper&lt;/span&gt;.&lt;span class=&quot;type&quot;&gt;Object&lt;/span&gt;);&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;var&lt;/span&gt; firstLineItem = &lt;span class=&quot;keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;Mock&lt;/span&gt;&amp;lt;&lt;span class=&quot;type&quot;&gt;ILineItemWrapper&lt;/span&gt;&amp;gt;();&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;firstLineItem&lt;/span&gt;&lt;br /&gt;    .SetupGet(x =&amp;gt; x.&lt;span class=&quot;type&quot;&gt;DisplayName&lt;/span&gt;)&lt;br /&gt;    .Returns(&lt;span class=&quot;string&quot;&gt;&quot;My Test Product&quot;&lt;/span&gt;);&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;firstLineItem&lt;/span&gt;&lt;br /&gt;    .SetupGet(x =&amp;gt; x.CatalogEntryId)&lt;br /&gt;   .Returns(&lt;span class=&quot;string&quot;&gt;&quot;Borderlands - PC&quot;&lt;/span&gt;);&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;firstLineItem&lt;/span&gt;&lt;br /&gt;    .SetupGet(x =&amp;gt; x.Quantity)&lt;br /&gt;    .Returns(BorderlandsQnty);&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;firstLineItem&lt;/span&gt;&lt;br /&gt;    .SetupSet(x =&amp;gt; x.Quantity = It.IsAny&amp;lt;&lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt;&amp;gt;())&lt;br /&gt;    .&lt;span class=&quot;type&quot;&gt;Callback&lt;/span&gt;&amp;lt;&lt;span class=&quot;type&quot;&gt;Decimal&lt;/span&gt;&amp;gt;(&lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt; =&amp;gt; BorderlandsQnty = &lt;span class=&quot;keyword&quot;&gt;value&lt;/span&gt;);&lt;br /&gt;&lt;br /&gt;LineItems = &lt;span class=&quot;keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span class=&quot;type&quot;&gt;ILineItemWrapper&lt;/span&gt;&amp;gt; { &lt;span class=&quot;type&quot;&gt;firstLineItem&lt;/span&gt;.&lt;span class=&quot;type&quot;&gt;Object&lt;/span&gt; };&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;CartWrapper&lt;/span&gt;.SetupGet(x =&amp;gt; x.LineItems).Returns(LineItems);&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;CartWrapper&lt;/span&gt;.Setup(x =&amp;gt; x.AcceptChanges());&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;type&quot;&gt;BasketHelper&lt;/span&gt;(factoryMock.&lt;span class=&quot;type&quot;&gt;Object&lt;/span&gt;);&lt;br /&gt;&lt;span class=&quot;comment&quot;&gt;//The test&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;BasketHelper&lt;/span&gt;.UpdateLineItemQuantity(&lt;span class=&quot;string&quot;&gt;&quot;Borderlands - PC&quot;&lt;/span&gt;, 3);&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;CartWrapper&lt;/span&gt;&lt;br /&gt;    .Verify(x =&amp;gt; x.AcceptChanges(), Times.Once);&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;type&quot;&gt;Assert&lt;/span&gt;.AreEqual(3, BorderlandsQnty);&lt;br /&gt;     &lt;!--[if IE]&gt;&lt;br /&gt;&lt;br /&gt;&lt;![endif]--&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;In essence to test 7 lines of code we have to write over 700 lines of wrapper code. If the team had spent 30 minutes to write interfaces around the two classes, it would have saved a lot of time wrapping the classes. This is just one example of some of the extra work we have to go to test commerce code.&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;If you fancy helping us with our project, we are currently hiring a full time EpiServer Engineer. Send your CV to jobs@greenmangaming.com&lt;/strong&gt;</description>            <guid>http://blog.playfire.com/2015/03/letters-from-engine-room-totd-unit.html</guid>            <pubDate>Tue, 03 Mar 2015 12:00:00 GMT</pubDate>           <category>Blog post</category></item></channel>
</rss>