Ejemplo n.º 1
0
 public OrderService(IRepository <Order> repository,
                     IUnitOfWork unitOfWork,
                     TempusHiringDbContext context,
                     IMapper mapper) : base(repository, unitOfWork, mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Ejemplo n.º 2
0
 public Repository(TempusHiringDbContext context)
 {
     _context = context;
     _set     = _context.Set <TSource>();
 }
Ejemplo n.º 3
0
 public CatalogService(TempusHiringDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
     _priceRange ??= GetWatchesPriceRange();
 }
Ejemplo n.º 4
0
 public UnitOfWork(TempusHiringDbContext dbContext)
 {
     DbContext = dbContext;
 }
Ejemplo n.º 5
0
 public ShoppingCartService(TempusHiringDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }