Ejemplo n.º 1
0
        internal void ApplyInternal(StockDeleted deleted)
        {
            foreach (var t in BuyOrSell)
            {
                Deletes.Add(t.Id);
            }

            StateUpdateLoop();
        }
Ejemplo n.º 2
0
 internal void Apply(StockDeleted deleted)
 {
     this.Owned        = 0;
     this.Cost         = 0;
     this.LastPurchase = null;
     this.LastSale     = null;
     this.Transactions.Clear();
     this.Buys.Clear();
     this.Sells.Clear();
     this.AverageCost = 0;
 }
Ejemplo n.º 3
0
 private void ApplyInternal(StockDeleted deleted)
 {
     this.State.Apply(deleted);
 }