Esempio n. 1
0
 public Building(string address, Tourniquet tourniquet)
 {
     this.address_ = address;
     this.tourniquet_ = tourniquet;
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Reactions react = new Reactions();
            Tourniquet tour = new Tourniquet(react.ReactOnGoodCard, react.ReactOnBadCard);
            Building SecondBuilding = new Building("Кремлевская 35", tour);
            Card card = new Card(7);
            Student Linar = new Student("Linar", card);

            tour.VerifyCard(card);
            Console.ReadLine();
        }
Esempio n. 3
0
 public void HoldCard(Card card, Tourniquet tourniquet)
 {
     tourniquet.VerifyCard(card);
 }