Example #1
0
 public Building(string address, Tourniquet tourniquet)
 {
     this._address = address;
     this._tourniquet = tourniquet;
 }
Example #2
0
        static void Main(string[] args)
        {
            Reactions react = new Reactions();
            Tourniquet tour = new Tourniquet(react.ReactOnGoodCard, react.ReactOnBadCard);
            Building TheSecondBuilding = new Building("35 Kremlevskaya st.", tour);

            Console.ForegroundColor = ConsoleColor.Red;
            Card card1 = new Card(3);
            Student VanyaErohin = new Student("Ваня Ерохин", card1);
            Console.Write(VanyaErohin.GetName + ", ");
            tour.VerifyCard(card1);

            Console.ForegroundColor = ConsoleColor.Green;
            Card card2 = new Card(4);
            Student SlavaSichev = new Student("\nСлава Сычёв", card2);
            Console.Write(SlavaSichev.GetName + ", ");
            tour.VerifyCard(card2);

            Console.ReadLine();
        }
Example #3
0
 public void HoldCard(Card card, Tourniquet tourniquet)
 {
     tourniquet.VerifyCard(card);
 }