Esempio n. 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));
        }
Esempio n. 2
0
 public static bool IsArranging(this SpotOrder so)
 {
     return(arranging.Get(so));
 }
Esempio n. 3
0
 public static bool IsArranging(this Order o)
 {
     return(arranging.Get(o));
 }
Esempio n. 4
0
        public static bool IsSelling(this Trader t, PositionSummary p)
        {
            var k = MakeKey(t, p);

            return(sellDic.Get(k));
        }
Esempio n. 5
0
 public static bool IsClearing(this Trader t)
 {
     return(cp.Get(t));
 }