コード例 #1
0
 public OrderService(IOrderRepository orderRepository,
                     IUserRepository userRepository,
                     ITheaterPerformanceRepository theaterPerformanceRepository,
                     IEmailService emailService,
                     IMapper mapper)
 {
     _orderRepository = orderRepository;
     _userRepository  = userRepository;
     _theaterPerformanceRepository = theaterPerformanceRepository;
     _emailService = emailService;
     _mapper       = mapper;
 }
コード例 #2
0
 public TheaterPerformanceService(IMapper mapper,
                                  ITheaterPerformanceRepository theaterPerformanceRepository,
                                  IUserAnswerRepository userAnswerRepository,
                                  IUserRepository userRepository,
                                  ITheaterPerformanceQueryBuilder theaterPerformanceQueryBuilder,
                                  IEmailService emailService)
 {
     _mapper = mapper;
     _theaterPerformanceRepository = theaterPerformanceRepository;
     _userAnswerRepository         = userAnswerRepository;
     _userRepository = userRepository;
     _emailService   = emailService;
     _query          = theaterPerformanceQueryBuilder;
 }