Esempio n. 1
0
        public new static ChargeLine Random()
        {
            var x = new ChargeLine();

            x.SetRandomValues();
            return(x);
        }
Esempio n. 2
0
 public void AddChargeLine(ChargeLine chargeLine)
 {
     if (IsNull(chargeLine))
     {
         return;
     }
     chargeLine.OrderLineId = UniqueId;
     chargeLine.OrderId     = OrderId;
     OrderLines.Instance.Add(chargeLine);
 }
Esempio n. 3
0
        public static BaseOrderLine Random()
        {
            var i = GetRandom.UInt32() % 4;

            if (i == 0)
            {
                return(ChargeLine.Random());
            }
            if (i == 1)
            {
                return(TaxOnLine.Random());
            }
            return(OrderLine.Random());
        }
Esempio n. 4
0
 public void RemoveChargeLine(ChargeLine chargeLine)
 {
     OrderLines.Instance.Remove(chargeLine);
 }