示例#1
0
        public void ComoAtendenteEuQueroCriarUmAgendamento()
        {
            //Arrange
            AgendamentoViewModel  agendamentoViewModel = new AgendamentoViewModel {crm= "2345", cpf= "2345", numeroCID = "21-9" };

            //Act
            ServicoDeAgendamento servicoDeAgendamento = new ServicoDeAgendamento(new AgendamentosFake());
            var retorno = servicoDeAgendamento.CriarAgendamento(agendamentoViewModel);

            Assert.IsTrue(retorno);
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            ServicoDeAgendamento servicoDeAgendamento = new ServicoDeAgendamento(new Agendamentos());
            servicoDeAgendamento.CriarAgendamento(new AgendamentoViewModel
            {
                cpf = cpf.Text,
                crm = crm.Text,
                numeroCID = cid.Text
            });

            MessageBox.Show("Gravado com sucesso!!!!");
        }