Example #1
0
        public void TestMethod1()
        {
            BooleanProperty <int> bp = new BooleanProperty <int>();

            Assert.AreEqual(false, bp.Get(1));

            bp.Set(1, true);
            Assert.AreEqual(true, bp.Get(1));

            bp.Set(1, false);
            Assert.AreEqual(false, bp.Get(1));
            bp.Set(1, true);
            Assert.AreEqual(true, bp.Get(1));

            bp.Set(1, false);
            Assert.AreEqual(false, bp.Get(1));
            bp.Set(1, true);
            Assert.AreEqual(true, bp.Get(1));

            bp.Set(1, false);
            Assert.AreEqual(false, bp.Get(1));
        }
Example #2
0
 public static void SetArranging(this SpotOrder so, bool isArranging)
 {
     arranging.Set(so, isArranging);
 }
Example #3
0
 public static void BeginArrange(this Order o)
 {
     arranging.Set(o, true);
 }
Example #4
0
        public static void SetSell(this Trader t, PositionSummary p, bool isSelling)
        {
            var k = MakeKey(t, p);

            sellDic.Set(k, isSelling);
        }
 public static void SetClearing(this Trader t, bool val)
 {
     cp.Set(t, val);
 }