Exemplo n.º 1
0
 public UserProfileController(
     [NotNull] IMediator mediator,
     [NotNull] IMimeMapping mimeMapping,
     [NotNull] IAvatarStore avatarStore)
 {
     this.mediator    = mediator ?? throw new ArgumentNullException(nameof(mediator));
     this.mimeMapping = mimeMapping ?? throw new ArgumentNullException(nameof(mimeMapping));
     this.avatarStore = avatarStore ?? throw new ArgumentNullException(nameof(avatarStore));
 }
 public EditAvatarInteractor(
     [NotNull] ILogger <EditAvatarInteractor> logger,
     [NotNull] IDiverRepository diverRepository,
     [NotNull] IAvatarStore avatarStore,
     [NotNull] IMimeMapping mimeMapping,
     [NotNull] ICurrentUser currentUser)
 {
     this.logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     this.diverRepository = diverRepository ?? throw new ArgumentNullException(nameof(diverRepository));
     this.avatarStore     = avatarStore ?? throw new ArgumentNullException(nameof(avatarStore));
     this.mimeMapping     = mimeMapping ?? throw new ArgumentNullException(nameof(mimeMapping));
     this.currentUser     = currentUser ?? throw new ArgumentNullException(nameof(currentUser));
 }