public FisiotesService() { _ctx = new FisiotesContext(); Clientes = new ClientesRepository(_ctx); Huecos = new HuecosRepository(_ctx); PuntosPendientes = new PuntosPendientesRepository(_ctx); Configuraciones = new ConfiguracionesRepository(_ctx); Entregas = new EntregasRepository(_ctx); Medicamentos = new MedicamentosRepository(_ctx); Sinonimos = new SinonimosRepository(_ctx); Pedidos = new PedidosRepository(_ctx); Listas = new ListasRepository(_ctx); Categorias = new CategoriasRepository(_ctx); Encargos = new EncargosRepository(_ctx); Familias = new FamiliasRepository(_ctx); Faltas = new FaltasRepository(_ctx); }
public FisiotesService(string host, string token) { Clientes = new ClientesRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Huecos = new HuecosRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); PuntosPendientes = new PuntosPendientesRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Configuraciones = new ConfiguracionesRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Entregas = new EntregasRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Medicamentos = new MedicamentosRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Sinonimos = new SinonimosRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Pedidos = new PedidosRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Faltas = new FaltasRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Familias = new FamiliasRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Encargos = new EncargosRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Categorias = new CategoriasRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Listas = new ListasRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Proveedores = new ProveedoresRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); Programacion = new ProgramacionRepository(new RestClient.RestSharp.RestClient(), FisiotesConfig.TestConfig(host, token)); }