public void Setup() { var optionsSqlServer = new DbContextOptionsBuilder <ParcialContext>() .UseSqlServer("Server=DESKTOP-GP31J4O;Database=Parcial;Trusted_Connection=True;MultipleActiveResultSets=true") .Options; _context = new ParcialContext(optionsSqlServer); //var optionsInMemory = new DbContextOptionsBuilder<ParcialContext>().UseInMemoryDatabase("Parcial").Options; //_context = new ParcialContext(optionsInMemory); }
public void Setup() { var optionsSqlServer = new DbContextOptionsBuilder <ParcialContext>() .UseSqlServer("Server=DESKTOP-GP31J4O;Database=Parcial;Trusted_Connection=True;MultipleActiveResultSets=true") .Options; _context = new ParcialContext(optionsSqlServer); //var optionsInMemory = new DbContextOptionsBuilder<ParcialContext>().UseInMemoryDatabase("Parcial").Options; //_context = new ParcialContext(optionsInMemory); personarequest = new Personarequest() { Cedula = "123", Nombres = "Luis E." }; }
public UserAttentionStaffService(ParcialContext context) => _context = context;
public UserAdminService(ParcialContext context) => _context = context;
public LoginController(ParcialContext context) { _userService = new UserService(context); }
public PersonaController(ParcialContext context) { _personaService = new PersonaService(context); }
public PatientController(ParcialContext _context) { _Service = new PatientService(_context); metodos = new MetodosServices(); }
public AppointmentService(ParcialContext context) => _context = context;
public EstudianteService(ParcialContext context) { _context = context; }
public EstudianteController(ParcialContext context) { _estudianteService = new EstudianteService(context); }
public VacunaService(ParcialContext context) { _context = context; }
public PersonaService(ParcialContext context) { _context = context; }
public PatientService(ParcialContext context) => _context = context;
public AttentionStaffController(ParcialContext context) { _staffService = new UserAttentionStaffService(context); }
public AppointmentController(ParcialContext context) { _Service = new AppointmentService(context); metodos = new MetodosServices(); }
public VacunaController(ParcialContext context) { _vacunaService = new VacunaService(context); }