Пример #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));
 }
 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));
 }