Beispiel #1
0
        private void MontarProgramas()
        {
            RemoverBotoes();
            var programas = _programaController.Get().OrderBy(x => x.Nome).ToArray();
            var posicaoX  = 0;
            var posicaoY  = 0;

            for (var i = 0; i < programas.Count(); i++)
            {
                MontarBotao(programas[i], i, ref posicaoX, ref posicaoY);
            }
        }
Beispiel #2
0
        public void QueroQueReturna3RegistrosDeProgramas()
        {
            var novoPrograma = new NovoProgramaCommand("Frango Grelhado", "#", "00:01:30", 5, "Frango",
                                                       "Deve ser feito congelado");

            _controller.Push(novoPrograma);

            var novoPrograma2 = new NovoProgramaCommand("Frango Grelhado 2", "#", "00:01:30", 5, "Frango",
                                                        "Deve ser feito congelado");

            _controller.Push(novoPrograma2);

            var novoPrograma3 = new NovoProgramaCommand("Frango Grelhado 3", "#", "00:01:30", 5, "Frango",
                                                        "Deve ser feito congelado");

            _controller.Push(novoPrograma3);


            var returno = _controller.Get();

            Assert.AreEqual(3, returno.Count());
        }