public ChickenFarm() { List <UInt32> dailySales = new List <UInt32>() { 20, 20, 20 }; mPricingModel = new PricingModel(dailySales, new Decimal(), new Decimal()); mOrderProcessing = new OrderProcessing(mPricingModel); mOrderBuffer = new CellBuffer <Order>(4); mCurrentPriceCuts = 0; mMaxPriceCuts = 10; mLastPrice = Decimal.MaxValue; mSubscribers = new Dictionary <Guid, IChickenFarmCallback>(); mOrderConsumerThread = new Thread(new ThreadStart(ProcessOrder)); mOrderConsumerThread.Name = "OrderConsumer"; mOrderConsumerThread.Start(); }
public ChickenFarm() { List<UInt32> dailySales = new List<UInt32>() { 20, 20, 20 }; mPricingModel = new PricingModel(dailySales, new Decimal(), new Decimal()); mOrderProcessing = new OrderProcessing(mPricingModel); mOrderBuffer = new CellBuffer<Order>(4); mCurrentPriceCuts = 0; mMaxPriceCuts = 10; mLastPrice = Decimal.MaxValue; mSubscribers = new Dictionary<Guid, IChickenFarmCallback>(); mOrderConsumerThread = new Thread(new ThreadStart(ProcessOrder)); mOrderConsumerThread.Name = "OrderConsumer"; mOrderConsumerThread.Start(); }