public ProductService(
     IUnitOfWork uow,
     IProductSQLServerRepository sqlServerRepository,
     IProductRedisRepository redisRepository,
     ProductValidator validationRules)
     : base(uow, sqlServerRepository, redisRepository, validationRules)
 {
     _uow = uow;
     _sqlServerRepository = sqlServerRepository;
     _redisRepository     = redisRepository;
     _validationRules     = validationRules;
 }
示例#2
0
 public OrderService(
     IUnitOfWork uow,
     IOrderSQLServerRepository sqlServerRepository,
     IOrderRedisRepository redisRepository,
     ICustomerSQLServerRepository customerSQLServerRepository,
     IProductSQLServerRepository productSQLServerRepository,
     OrderValidator validationRules)
     : base(uow, sqlServerRepository, redisRepository, validationRules)
 {
     _uow = uow;
     _sqlServerRepository         = sqlServerRepository;
     _redisRepository             = redisRepository;
     _validationRules             = validationRules;
     _customerSQLServerRepository = customerSQLServerRepository;
     _productSQLServerRepository  = productSQLServerRepository;
 }