public void ComoAtendenteQueroVerificarOValorTotalDoAgendamento() { //Arrage Agendamento agendamento = (new FabricaDeAgendamento()).InformarPaciente("123") .InformarMedicoSolicitante("1234") .InformarAtendente("1234") .Criar(); agendamento.AdicionarExame(new Exame(new TipoExame("10101012", "Hemograma", 100))); //Act ServicoDeAgendamento servicoDeAgendamento = new ServicoDeAgendamento(new ServicoDeGeracaoCredencial()); var retornoAgendamento = servicoDeAgendamento.CadastrarAgendamento(agendamento); //Assert Assert.IsTrue(agendamento.CalcularValorTotal() == 100); }