Esempio n. 1
0
        private void SetSerialNumber(string serialNumber)
        {
            if (this.PrimaryCollection != null)
            {
                CardsCollection cards = PrimaryCollection as CardsCollection;
                cards.ValidateSerialNumber(serialNumber, this);
            }

            _serialNumber = serialNumber;
        }
Esempio n. 2
0
        public void test_card()
        {
            Card c1 = new Card("1");
            Card c2 = new Card("2");
            Card c3 = new Card("3");

            CardsCollection cs = new CardsCollection();

            cs.Add(c1);
            cs.Add(c2);
            cs.Add(c3);
            //cs.Add(c3);
            Assert.AreEqual(3, cs.Count);
            c3.SerialNumber = " 2";
        }