예제 #1
0
 /// <summary>
 ///     Create new instance.
 /// </summary>
 public UserService(AppContext appContext,
                    IUserRepository userRepository,
                    IEntityStorageUriService entityStorageUriService)
 {
     AppContext               = appContext ?? throw new ArgumentNullException(nameof(appContext));
     _userRepository          = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     _entityStorageUriService = entityStorageUriService ?? throw new ArgumentNullException(nameof(entityStorageUriService));
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 /// <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));
 }
예제 #4
0
 /// <summary>
 ///     Create new instance.
 /// </summary>
 public UserController(Core.AppContext appContext,
                       IUserService userService,
                       UserUpdateHelper userUpdateHelper,
                       IEntityStorageUriService entityStorageUriService,
                       IMapper mapper)
 {
     _appContext              = appContext ?? throw new ArgumentNullException(nameof(appContext));
     _userService             = userService ?? throw new ArgumentNullException(nameof(userService));
     _userUpdateHelper        = userUpdateHelper ?? throw new ArgumentNullException(nameof(userUpdateHelper));
     _entityStorageUriService = entityStorageUriService ?? throw new ArgumentNullException(nameof(entityStorageUriService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }