public UnitofWork(AppDbContext db)
 {
     _db               = db;
     PartnerFinder     = new PartnerFinder(_db);
     MessageRepository = new MessageRepository(_db);
     PhotoRepo         = new PhotoRepo(_db);
 }
Beispiel #2
0
 public PhotosController(IHostingEnvironment host, IBookInstRepo repo, IUnitOfWork uow, IMapper mapper, IOptionsSnapshot <PhotoSettings> options, IPhotoRepo photoRepo, IConfiguration config)
 {
     this.photoRepo     = photoRepo;
     this.photoSettings = options.Value;
     this.mapper        = mapper;
     this.uow           = uow;
     this.bookInstRepo  = repo;
     this.host          = host;
 }
Beispiel #3
0
 public DeletePhotoLikeCommandHandler(IMapper mapper, IPhotoLikeRepo photoLikeRepo, IPhotoRepo photoRepo)
 {
     _mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _photoLikeRepo = photoLikeRepo ?? throw new ArgumentNullException(nameof(photoLikeRepo));
     _photoRepo     = photoRepo ?? throw new ArgumentNullException(nameof(photoRepo));
 }
Beispiel #4
0
 public PhotoController(IPhotoRepo photos)
 {
     _photos = photos;
 }
 public UserService(AppDbContext ctx, IUserRepo userRepo, IPhotoRepo photoRepo, IAlbumRepo albumRepo) : base(ctx)
 {
     _userRepo  = userRepo;
     _photoRepo = photoRepo;
     _albumRepo = albumRepo;
 }
Beispiel #6
0
 public AddPhotoCommandHandler(IPhotoRepo photoRepo, ICloudinaryService cloudinaryService)
 {
     _photoRepo         = photoRepo ?? throw new ArgumentNullException(nameof(photoRepo));
     _cloudinaryService = cloudinaryService ?? throw new ArgumentNullException(nameof(cloudinaryService));
 }
 public AlbumService(AppDbContext ctx, IAlbumRepo albumRepo, IPhotoRepo photoRepo) : base(ctx)
 {
     _albumRepo = albumRepo;
     _photoRepo = photoRepo;
 }
 public PhotoController(IPhotoRepo repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Beispiel #9
0
 public ImageController(IPhotoRepo repo)
 {
     photoRepo = repo;
 }
 public GetPhotosForUserQueryHandler(IMapper mapper, IPhotoRepo photoRepo)
 {
     _mapper    = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _photoRepo = photoRepo ?? throw new ArgumentNullException(nameof(photoRepo));
 }
 public PhotoService(AppDbContext ctx, IPhotoRepo photoRepo, IUserRepo userRepo) : base(ctx)
 {
     _userRepo  = userRepo;
     _photoRepo = photoRepo;
 }
 public PhotoController(IPhotoRepo repo)
 {
     _repo = repo;
 }
Beispiel #13
0
 public AddCommentCommandHandler(ICommentRepo commentRepo, IMapper mapper, IPhotoRepo photoRepo)
 {
     _commentRepo = commentRepo ?? throw new ArgumentNullException(nameof(commentRepo));
     _photoRepo   = photoRepo ?? throw new ArgumentNullException(nameof(photoRepo));
     _mapper      = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #14
0
 public HomeController(IPhotoRepo photos)
 {
     _photos = photos;
 }