Esempio n. 1
0
 private void Template()
 {
     cashbox.AddPerformance("Ромео и Джульета", new DateTime(2019, 6, 7, 19, 00, 00));
     cashbox.AddPerformance("Снежная королева", new DateTime(2019, 6, 17, 19, 00, 00));
     cashbox.AddPerformance("Щелкунчик", new DateTime(2019, 6, 17, 19, 00, 00));
     cashbox.SaleTicket(new Client("Трофимов Е.В."), cashbox.SelectPerformance(0), typeTicket.balcony);
     cashbox.SaleTicket(new Client("Трофимов Е.В."), cashbox.SelectPerformance(0), typeTicket.lodge);
     cashbox.SaleTicket(new Client("Трофимов Е.В."), cashbox.SelectPerformance(0), typeTicket.lodge);
     cashbox.SaleTicket(new Client("Липский Д.С."), cashbox.SelectPerformance(1), typeTicket.lodge);
     cashbox.SaleTicket(new Client("Липский Д.С."), cashbox.SelectPerformance(1), typeTicket.lodge);
     cashbox.SaleTicket(new Client("Трофимов Е.В."), cashbox.SelectPerformance(1), typeTicket.balcony);
 }
 private void AddPerformanceButton_Click(object sender, RoutedEventArgs e)
 {
     cashbox.AddPerformance(nameInputBox.Text, inputDatePicker.SelectedDate.Value);
     msgBox.Text = "Спектакль \"" + nameInputBox.Text + "\" успешно добавлен\nДата проведения : " + inputDatePicker.SelectedDate.Value.ToLongDateString();
 }
Esempio n. 3
0
        public void AddPerformanceTestMethod()
        {
            Cashbox cashboxExpected = new Cashbox();

            cashboxActual.AddPerformance("Ромео и Джульета", new DateTime(2019, 6, 7, 19, 00, 00));
        }