/// <summary> /// Create new instance. /// </summary> public VlogLikeService(AppContext appContext, IVlogRepository vlogRepository, IVlogLikeRepository vlogLikeRepository, INotificationService notificationService) { AppContext = appContext ?? throw new ArgumentNullException(nameof(appContext)); _vlogRepository = vlogRepository ?? throw new ArgumentNullException(nameof(vlogRepository)); _vlogLikeRepository = vlogLikeRepository ?? throw new ArgumentNullException(nameof(vlogLikeRepository)); _notificationService = notificationService ?? throw new ArgumentNullException(nameof(notificationService)); }
/// <summary> /// Create new instance. /// </summary> public ReactionService(INotificationService notificationService, IBlobStorageService blobStorageService, IEntityStorageUriService entityStorageUriService, IReactionRepository reactionRepository, IVlogRepository vlogRepository) { _notificationService = notificationService ?? throw new ArgumentNullException(nameof(notificationService)); _blobStorageService = blobStorageService ?? throw new ArgumentNullException(nameof(blobStorageService)); _entityStorageUriService = entityStorageUriService ?? throw new ArgumentNullException(nameof(entityStorageUriService)); _reactionRepository = reactionRepository ?? throw new ArgumentNullException(nameof(reactionRepository)); _vlogRepository = vlogRepository ?? throw new ArgumentNullException(nameof(vlogRepository)); }
/// <summary> /// Create new instance. /// </summary> public VlogService(AppContext appContext, IVlogRepository vlogRepository, INotificationService notificationService, IBlobStorageService blobStorageService, IEntityStorageUriService entityStorageUriService) { AppContext = appContext ?? throw new ArgumentNullException(nameof(appContext)); _vlogRepository = vlogRepository ?? throw new ArgumentNullException(nameof(vlogRepository)); _notificationService = notificationService ?? throw new ArgumentNullException(nameof(notificationService)); _blobStorageService = blobStorageService ?? throw new ArgumentNullException(nameof(blobStorageService)); _entityStorageUriService = entityStorageUriService ?? throw new ArgumentNullException(nameof(entityStorageUriService)); }