コード例 #1
0
 //private readonly IPictureRequestRepository _pictureRequestRepository;
 public AdminController(IRoasterRepository roasterRepository, IUserRepository userRepository,
                        IRoasterRequestRepository roasterRequestRepository /*, IPictureRequestRepository pictureRequestRepository*/)
 {
     _roasterRepository        = roasterRepository;
     _userRepository           = userRepository;
     _roasterRequestRepository = roasterRequestRepository;
     //_pictureRequestRepository = pictureRequestRepository;
 }
コード例 #2
0
 public RoasterAddressConnectionService(IRoasterRepository roasterRepository,
                                        IAddressRepository addressRepository,
                                        ILogger logger)
 {
     _roasterRepository = roasterRepository ?? throw new ArgumentNullException(nameof(roasterRepository));
     _addressRepository = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository));
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
 }
コード例 #3
0
 public RoasterAdminService(IRoasterRepository roasterRepository,
                            IPictureRepository pictureRepository,
                            IRoasterTagRepository roasterTagRepository,
                            ITagRepository tagRepository,
                            IAddressRepository addressRepository,
                            ILogger logger)
 {
     _roasterRepository    = roasterRepository ?? throw new ArgumentNullException(nameof(roasterRepository));
     _roasterTagRepository = roasterTagRepository ?? throw new ArgumentNullException(nameof(roasterTagRepository));
     _pictureRepository    = pictureRepository ?? throw new ArgumentNullException(nameof(pictureRepository));
     _tagRepository        = tagRepository ?? throw new ArgumentNullException(nameof(tagRepository));
     _addressReposiotry    = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository));
     _logger = logger ?? throw new ArgumentNullException(nameof(addressRepository));
 }
コード例 #4
0
 public RoasterService(IRoasterRepository roasterRepository,
                       IRoasterTagRepository roasterTagRepository)
 {
     _roasterRepository    = roasterRepository ?? throw new ArgumentNullException(nameof(roasterRepository));
     _roasterTagRepository = roasterTagRepository ?? throw new ArgumentNullException(nameof(roasterTagRepository));
 }