public NoleggioGenericService(IGenericEfRepository <TEntity> repository, IUnitOfWork unitOfWork)
        {
            Guard.WhenArgument(repository, nameof(repository)).IsNull().Throw();
            Guard.WhenArgument(unitOfWork, nameof(unitOfWork)).IsNull().Throw();

            this.repository = repository;
            this.unitOfWork = unitOfWork;
        }
Example #2
0
        public TransactionProvider(IGenericEfRepository <TransactionDto> rep)
        {
            _rep = rep;

            AutoMapper.Mapper.Initialize(config =>
            {
                config.CreateMap <TransactionDto, TransactionBaseDto>();
                config.CreateMap <TransactionBaseDto, TransactionDto>();
            });
        }
Example #3
0
        public CustomerProvider(IGenericEfRepository <CustomerDto> rep)
        {
            _rep = rep;

            AutoMapper.Mapper.Initialize(config =>
            {
                config.CreateMap <Customer, CustomerBaseDto>();
                config.CreateMap <CustomerBaseDto, Customer>();
                config.CreateMap <Customer, CustomerDto>();
                config.CreateMap <CustomerDto, Customer>();
                config.CreateMap <CustomerBaseDto, CustomerDto>();
                config.CreateMap <CustomerDto, CustomerBaseDto>();
            });
        }
 public CreateAllergenCommandHandler(IGenericEfRepository <Allergen> repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
 public UpdateAllergenCommandHandler(IGenericEfRepository <Allergen> repository, IMapper mapper, IEventBus eventBus)
 {
     _repository = repository;
     _mapper     = mapper;
     _eventBus   = eventBus;
 }
 public CreateCategoryCommandHandler(IGenericEfRepository <Category> repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
 public CreateItemCommandHandler(IGenericEfRepository <Item> repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Example #8
0
 public UserService(IGenericEfRepository <User> repository, IUnitOfWork unitOfWork, IMapingService mappingService) : base(repository, unitOfWork)
 {
     Guard.WhenArgument(mappingService, nameof(mappingService)).IsNull().Throw();
     this.mappingService = mappingService;
 }
Example #9
0
 public CustomerProvider(IGenericEfRepository <Customer> rep)
 {
     _rep = rep;
 }
 public CreateIngredientCommandHandler(IGenericEfRepository <Ingredient> repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Example #11
0
 public GetItemsQueryHandler(IGenericEfRepository <Item, ItemDto> repository, IMapper mapper, ILogger <GetItemsQueryHandler> logger)
 {
     _repository = repository;
     _mapper     = mapper;
     _logger     = logger;
 }
Example #12
0
 public DeleteIngredientCommandHandler(IGenericEfRepository <Ingredient> repository, IEventBus eventBus)
 {
     _repository = repository;
     _eventBus   = eventBus;
 }
Example #13
0
 public TransactionProvider(IGenericEfRepository <Transaction> rep, ILogger <TransactionProvider> logger, IInventoryProvider inventoryProvider)
 {
     _rep               = rep;
     _logger            = logger;
     _inventoryProvider = inventoryProvider;
 }
Example #14
0
 public GetCategoriesQueryHandler(IGenericEfRepository <Category> repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Example #15
0
 public ProductServices(IFtpServices ftpServices, IGenericEfRepository <Produto> efProdutoRepository, IWcProductRepository wcProductRepository)
 {
     _ftpServices         = ftpServices;
     _efProdutoRepository = efProdutoRepository;
     _wcProductRepository = wcProductRepository;
 }
Example #16
0
 public InventoryProvider(IGenericEfRepository <InventoryDto> rep)
 {
     _rep = rep;
 }
Example #17
0
 public GetItemQueryHandler(IGenericEfRepository <Item, ItemDto> repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Example #18
0
 public MyProvider(IGenericEfRepository <Student> rep, IMapper mapper)
 {
     _rep    = rep;
     _mapper = mapper;
 }
Example #19
0
 public NoleggioGenericServiceMock(IGenericEfRepository <Category> repository, IUnitOfWork unitOfWork) : base(repository, unitOfWork)
 {
 }
Example #20
0
 public CommentService(IGenericEfRepository <Comment> repository, IUnitOfWork unitOfWork, IMapingService mapper) : base(repository, unitOfWork)
 {
     Guard.WhenArgument(mapper, nameof(mapper)).IsNull().Throw();
     this.mapper = mapper;
 }
 public DeleteAllergenCommandHandler(IGenericEfRepository <Allergen> repository, IEventBus eventBus)
 {
     _repository = repository;
     _eventBus   = eventBus;
 }
Example #22
0
 public GetIngredientQueryHandler(IGenericEfRepository <Ingredient> repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
 public PropertyProvider(IGenericEfRepository <Domain.Entities.Property> rep, IMapper mapper)
 {
     _rep    = rep;
     _mapper = mapper;
 }
Example #24
0
 public InventoryProvider(IGenericEfRepository <Inventory> rep, ILogger <InventoryProvider> logger)
 {
     _rep    = rep;
     _logger = logger;
 }
Example #25
0
 public TransactionProvider(IGenericEfRepository <TransactionDTo> rep)
 {
     _rep = rep;
 }
Example #26
0
 public GetAllergenQueryHandler(IGenericEfRepository <Allergen> repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
 public UpdateCategoryCommandHandler(IGenericEfRepository <Category> repository, IMapper mapper, IEventBus eventBus)
 {
     _repository = repository;
     _mapper     = mapper;
     _eventBus   = eventBus;
 }
 public UpdateIngredientCommandHandler(IGenericEfRepository <Ingredient> repository, IMapper mapper, IEventBus eventBus)
 {
     _repository = repository;
     _mapper     = mapper;
     _eventBus   = eventBus;
 }
 public DeleteItemCommandHandler(IGenericEfRepository <Item> repository, IEventBus eventBus, ILogger <DeleteItemCommand> logger)
 {
     _repository = repository;
     _eventBus   = eventBus;
     _logger     = logger;
 }
Example #30
0
 public DeleteCategoryCommandHandler(IGenericEfRepository <Category> repository, IEventBus eventBus)
 {
     _repository = repository;
     _eventBus   = eventBus;
 }