예제 #1
0
 public CustomerService(
     IUnitOfWork uow,
     ICustomerSQLServerRepository sqlServerRepository,
     ICustomerRedisRepository redisRepository,
     CustomerValidator 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;
 }