public OrderStatusesController(
     IPagingRepository <OrderStatus, int> entityRepository,
     IMapper mapper)
 {
     _entityRepository = entityRepository;
     _mapper           = mapper;
 }
Beispiel #2
0
 public ProductsController(
     IPagingRepository <Product, string> entityRepository,
     IMapper mapper)
 {
     _entityRepository = entityRepository;
     _mapper           = mapper;
 }
 public CategoriesController(
     IPagingRepository <Category, string> entityRepository,
     IMapper mapper)
 {
     _entityRepository = entityRepository;
     _mapper           = mapper;
 }
Beispiel #4
0
 public OrdersController(
     IPagingRepository <Order, string> entityRepository,
     IMapper mapper)
 {
     _entityRepository = entityRepository;
     _mapper           = mapper;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="pagingRepository">The paging repository.</param>
 /// <param name="pagingService">The paging service.</param>
 /// <param name="tagRepository">The tag repository.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public TagsController(IMediaRepository mediaRepository,
                       IPagingRepository pagingRepository,
                       IPagingService pagingService,
                       ITagRepository tagRepository,
                       ITagService tagService, IPersistentCollectionService persistentCollectionService)
 {
     _mediaRepository             = mediaRepository;
     _persistentCollectionService = persistentCollectionService;
     _tagService       = tagService;
     _tagRepository    = tagRepository;
     _pagingRepository = pagingRepository;
     _pagingService    = pagingService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="pagingRepository">The paging repository.</param>
 /// <param name="pagingService">The paging service.</param>
 /// <param name="tagRepository">The tag repository.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public TagsController(IMediaRepository mediaRepository, 
     IPagingRepository pagingRepository,
     IPagingService pagingService,
     ITagRepository tagRepository,
     ITagService tagService, IPersistentCollectionService persistentCollectionService)
 {
     _mediaRepository = mediaRepository;
     _persistentCollectionService = persistentCollectionService;
     _tagService = tagService;
     _tagRepository = tagRepository;
     _pagingRepository = pagingRepository;
     _pagingService = pagingService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PagingService"/> class.
 /// </summary>
 /// <param name="pagingRepository">The paging repository.</param>
 /// <param name="mediaRepository">The media repository.</param>
 public PagingService(IPagingRepository pagingRepository, IMediaRepository mediaRepository)
 {
     _pagingRepository = pagingRepository;
     _mediaRepository = mediaRepository;
 }
 public static IPagedList <TEntity> GetAllPagedByGuid <TEntity>(this IPagingRepository <TEntity> repository, IPagingRequest request)
     where TEntity : BaseEntityWithGuidKey
 {
     return(repository.FindWithPaging(request, x => x.Id));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PagingService"/> class.
 /// </summary>
 /// <param name="pagingRepository">The paging repository.</param>
 /// <param name="mediaRepository">The media repository.</param>
 public PagingService(IPagingRepository pagingRepository, IMediaRepository mediaRepository)
 {
     _pagingRepository = pagingRepository;
     _mediaRepository  = mediaRepository;
 }
Beispiel #10
0
 public PagingRepositoryTests()
 {
     this.customersPagingRepository = new PagingRepository <Customer, Guid>(new InMemoryGenericContext());
     this.customersRepository       = new EntityRepository <Customer, Guid>(new InMemoryGenericContext());
 }