Esempio n. 1
0
        /// <summary>Creates a new SampleOrderLine.</summary>
        /// <param name="userId">     Identifier for the user.</param>
        /// <param name="orderId">    Identifier for the order.</param>
        /// <param name="orderLineId">Identifier for the order line.</param>
        /// <returns>A SampleOrderLine.</returns>
        public static SampleOrderLine Create(Guid userId, int orderId, int orderLineId)
        {
            SampleOrderLine sampleOrderLine = new SampleOrderLine();

            sampleOrderLine.Id                    = SampleOrderLine.CreateUrn(userId, (long)orderId, (long)orderLineId);
            sampleOrderLine.CreatedDate           = DateTime.Now;
            sampleOrderLine.OrderId               = (long)orderId;
            sampleOrderLine.OrderLineId           = (long)orderLineId;
            sampleOrderLine.AlbumName             = "AlbumName";
            sampleOrderLine.CashMixValueIncVat    = new decimal(1528914989, -1561970359, 372399876, false, 28);
            sampleOrderLine.TransactionValueExVat = new decimal(79, 0, 0, false, 2);
            sampleOrderLine.ContentUrn            = "urn:content:" + Guid.NewGuid().ToString("N");
            return(sampleOrderLine);
        }
Esempio n. 2
0
 /// <summary>Creates a new SampleOrderLine.</summary>
 /// <param name="userId">Identifier for the user.</param>
 /// <returns>A SampleOrderLine.</returns>
 public static SampleOrderLine Create(Guid userId)
 {
     return(SampleOrderLine.Create(userId, 1, 1));
 }