Пример #1
0
 public CajaService(ScmContext context, CajaRepositorio cajaRepositorio, RegistroValeRepository registroVale, RegistroFacturaRepository registroFactura)
 {
     _cajaRepositorio = cajaRepositorio;
     _registroFactura = registroFactura;
     _RegistroVale    = registroVale;
     _context         = context;
 }
Пример #2
0
 public UserService(IOptions <AppSettings> appSettings, IMapper mapper, ScmContext context, UserRepository userRepository)
 {
     _appSettings    = appSettings.Value;
     _userRepository = userRepository;
     _context        = context;
     _mapper         = mapper;
 }
Пример #3
0
 public BoardService(ScmContext context, BoardRepository boardRepository, UserRepository userRepository, IMapper mapper)
 {
     _userRepository  = userRepository;
     _boardRepository = boardRepository;
     _context         = context;
     _mapper          = mapper;
 }
Пример #4
0
 public UserController(UserRepository userRepository, ScmContext scmContext, IMapper mapper, UserService userService)
 {
     _userRepository = userRepository;
     _scmContext     = scmContext;
     _mapper         = mapper;
     _userService    = userService;
 }
Пример #5
0
 public FacturaController(FacturaService ValeService, IMapper mapper, FacturaRepository facturaRepository, ScmContext context)
 {
     _valeService       = ValeService;
     _mapper            = mapper;
     _facturaRepository = facturaRepository;
     _context           = context;
 }
Пример #6
0
 public MaestrosService(ScmContext context, IMapper mapper, MaestrosRepository maestrosRepository, HorariosRepository horarioRepository)
 {
     _context            = context;
     _mapper             = mapper;
     _maestrosRepository = maestrosRepository;
     _horarioRepository  = horarioRepository;
 }
Пример #7
0
 public FacturaService(ScmContext context, FacturaRepository facturaRepository, ValeRepository valeRepository, RetencionRepository retencionRepository)
 {
     _valeRepository      = valeRepository;
     _facturaRepository   = facturaRepository;
     _retencionRepository = retencionRepository;
     _context             = context;
 }
Пример #8
0
 public MaestrosController(MaestrosRepository maestrosRepository, MaestrosService maestrosService, ScmContext scmContext, IMapper mapper)
 {
     _maestrosRepository = maestrosRepository;
     _scmContext         = scmContext;
     _mapper             = mapper;
     _maestrosService    = maestrosService;
 }
Пример #9
0
 public EmpleadoController(EmpleadoRepository repository, ScmContext context, IMapper mapper)
 {
     empleadoRepository = repository;
     _context           = context;
     _mapper            = mapper;
     Console.WriteLine($"asdasdsad {repository.ToString()}");
 }
Пример #10
0
 public ValesController(ValeRepository repository, ScmContext context, IMapper mapper)
 {
     ValeRepository = repository;
     _context       = context;
     _mapper        = mapper;
     Console.WriteLine($"asdasdsad {repository.ToString()}");
 }
Пример #11
0
 public CajaController(CajaRepositorio _cajaRepositorio, ScmContext _context, IMapper _mapper, RegistroFacturaRepository registroFacturaRepository, RegistroValeRepository registroValeRepository)
 {
     this._cajaRepositorio = _cajaRepositorio;
     this._context         = _context;
     this._mapper          = _mapper;
     _registroVales        = registroValeRepository;
     _registroFactura      = registroFacturaRepository;
 }
Пример #12
0
 public AccountController(UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IConfiguration configuration, JwtSettings jwtSettings, RoleManager <AppRole> roleManager, IMapper mapper, CuentaRepository cuentaRepository, ScmContext context)
 {
     _userManager      = userManager;
     _signInManager    = signInManager;
     _configuration    = configuration;
     _jwtSettings      = jwtSettings;
     _roleManager      = roleManager;
     _mapper           = mapper;
     _cuentaRepository = cuentaRepository;
     _context          = context;
 }
        public void Test1()
        {
            using (var ctxt = new ScmContext())
            {
                var partName = "Sample" + DateTime.Now.ToString("HHmmss");
                var part     = new PartType()
                {
                    Name = partName
                };
                ctxt.Parts.Add(part);
                ctxt.SaveChanges();

                var getPart = ctxt.Parts.Single(
                    p => p.Name == partName);
                Assert.Equal(getPart.Name, part.Name);

                ctxt.Parts.Remove(getPart);
                ctxt.SaveChanges();

                getPart = ctxt.Parts.FirstOrDefault(
                    p => p.Name == partName);
                Assert.Null(getPart);
            }
        }
Пример #14
0
 public HorariosController(HorariosRepository horariosRepository, ScmContext context, IMapper mapper)
 {
     _context            = context;
     _mapper             = mapper;
     _horariosRepository = horariosRepository;
 }
Пример #15
0
 public FacturaService(ScmContext context, ValeRepository valeRepository, RegistroValeRepository registroValeRepository)
 {
     _registroValeRepository = registroValeRepository;
     _valeRepository         = valeRepository;
     _context = context;
 }
Пример #16
0
 public RetencionesController(RetencionesRepository _retencionesRepository, ScmContext _context, IMapper _mapper)
 {
     RetencionesRepository = _retencionesRepository;
     Context = _context;
     Mapper  = _mapper;
 }
Пример #17
0
 public HorariosRepository(ScmContext context) : base(context)
 {
 }
Пример #18
0
 public UnitTest1(SampleScmDataFixture fixture)
 {
     this.fixture = fixture;
     this.context = new ScmContext(fixture.Connection);
 }
Пример #19
0
 public BaseRepository(ScmContext context)
 {
     _context = context;
     _dbSet   = _context.Set <TEntity>();
 }
Пример #20
0
 public UnitTest2(SampleScmDataFixture fixture, ITestOutputHelper output)
 {
     this.fixture = fixture;
     this.context = new ScmContext(fixture.Connection);
     this.output  = output;
 }
 public EstudiantesRepository(ScmContext context) : base(context)
 {
 }
Пример #22
0
 public FacturaController(FacturaService facturaService, FacturaService valeService, IMapper mapper, ScmContext context)
 {
     _facturaService = facturaService;
     _mapper         = mapper;
     _context        = context;
 }
Пример #23
0
 public UserRepository(ScmContext context) : base(context)
 {
     _scmContext = context;
     _dbSet      = _context.Set <User>();
 }
Пример #24
0
 public ValeRepository(ScmContext context)
 {
     _context = context;
     _dbSet   = _context.Set <Vale>();
 }
Пример #25
0
 public EmpleadoRepository(ScmContext context) : base(context)
 {
 }
Пример #26
0
 public TableCreationTest(SampleScmDataFixture fixture)
 {
     _fixture = fixture;
     _context = new ScmContext(fixture.Connection);
 }
Пример #27
0
 public RetencionRepository(ScmContext context) : base(context)
 {
 }
 public EmpleadoController(EmpleadoRepository _EmpleadoRepository, ScmContext _context, IMapper _mapper)
 {
     this._EmpleadoRepository = _EmpleadoRepository;
     this._context            = _context;
     this._mapper             = _mapper;
 }
Пример #29
0
 public ValeRepository(ScmContext context) : base(context)
 {
 }
Пример #30
0
 public RegistroValeRepository(ScmContext context) : base(context)
 {
 }