public void DeveExcluirUmPaciente() { //Arrange IRepositorioPaciente repositorioPaciente = new RepositorioPacienteFake(); Paciente paciente = new Paciente("Fabio Margarito", "23434343"); //Act var retorno = repositorioPaciente.Excluir(paciente); //Assert Assert.IsTrue(retorno); }
public void DeveListarPacientesPorTrechoDoNome() { //Arrange List <Paciente> pacientes = new List <Paciente>(); IRepositorioPaciente repositorioPaciente = new RepositorioPacienteFake(); //Act pacientes = repositorioPaciente.RetornarPorTrechoNome("fa"); //Assert Assert.IsTrue(pacientes.Count > 0); }