public UnitofWork(AppDbContext db) { _db = db; PartnerFinder = new PartnerFinder(_db); MessageRepository = new MessageRepository(_db); PhotoRepo = new PhotoRepo(_db); }
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; }
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)); }
public PhotoController(IPhotoRepo photos) { _photos = photos; }
public UserService(AppDbContext ctx, IUserRepo userRepo, IPhotoRepo photoRepo, IAlbumRepo albumRepo) : base(ctx) { _userRepo = userRepo; _photoRepo = photoRepo; _albumRepo = albumRepo; }
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; }
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; }
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)); }
public HomeController(IPhotoRepo photos) { _photos = photos; }