public void BuscaPaciente_OracleDataAccess() { log.Info("Inicio BuscaPaciente_OracleDataAccess"); rep = new PacienteRepositoryDataAccess(); service = new PacienteBusinessService(rep); IList <Paciente> pacientes = service.BuscarPublicoAlvo(); log.Info("Fim BuscaPaciente_OracleDataAccess"); Assert.IsNotNull(pacientes); Assert.IsTrue(pacientes.Count > 0); }
public void BuscaPaciente_OracleManaged() { log.Info("Inicio BuscaPaciente_OracleManaged"); rep = container.Get <PacienteRepository>(); //service = new PacienteBusinessService(rep); var param = new Ninject.Parameters.ConstructorArgument("PacienteRepository", rep); service = container.Get <PacienteBusinessService>(param); IList <Paciente> pacientes = service.BuscarPublicoAlvo(); log.Info("Fim BuscaPaciente_OracleManaged"); Assert.IsNotNull(pacientes); Assert.IsTrue(pacientes.Count > 0); }