Пример #1
0
        static void Main(string[] args)
        {
            ICinema cinema =
                CreateCinema(CinemaType.flat, EquipmentType.ZWave);

            cinema.Show();
            cinema.Stop();
            cinema.Off();
            Console.WriteLine("-----------------------------");
            cinema = CreateCinema(CinemaType.flat, EquipmentType.Noolite);
            cinema.Show();
            cinema.Stop();
            cinema.Off();
            Console.WriteLine("-----------------------------");
            cinema = CreateCinema(CinemaType.cottadge, EquipmentType.ZWave);
            cinema.Show();
            cinema.Stop();
            cinema.Off();
            Console.WriteLine("-----------------------------");
            cinema = CreateCinema(CinemaType.cottadge, EquipmentType.Noolite);
            cinema.Show();
            cinema.Stop();
            cinema.Off();
            Console.ReadKey();
        }
Пример #2
0
        public void Run()
        {
            ICinema cinema =
                CreateCinema();

            cinema.Show();
            cinema.Stop();
            cinema.Off();
        }
Пример #3
0
        public void Cinema_FlatZwave_result()
        {
            ICinema cinema = CreateCinema(CinemaType.flat, EquipmentType.ZWave);

            _output.WriteLine(cinema.Show());
            _output.WriteLine("-----------------------------");
            _output.WriteLine(cinema.Stop());
            _output.WriteLine("-----------------------------");
            _output.WriteLine(cinema.Off());
        }