public PasswordResetController(IUserProfileWriter userProfileWriter, IUserProfileReader userProfileReader, IUserProfileTokenWriter tokenWriter, IUserProfileTokenReader tokenReader, IEmailMessenger emailMessenger)
 {
     _userProfileWriter = userProfileWriter;
     _userProfileReader = userProfileReader;
     _tokenWriter       = tokenWriter;
     _tokenReader       = tokenReader;
     _emailMessenger    = emailMessenger;
 }
 public ReceiptSender(
     IReceiptStorage receiptStorage,
     IEmailSender emailSender,
     IUserProfileReader userProfileReader,
     ILogger logger,
     Func <DateTime> nowProvider
     )
 {
     _receiptStorage    = receiptStorage;
     _emailSender       = emailSender;
     _userProfileReader = userProfileReader;
     _logger            = logger;
     _nowProvider       = nowProvider;
 }
示例#3
0
        public ReceiptSenderTests()
        {
            _receiptStorage    = Substitute.For <IReceiptStorage>();
            _emailSender       = Substitute.For <IEmailSender>();
            _userProfileReader = Substitute.For <IUserProfileReader>();
            _logger            = Substitute.For <ILogger>();

            _sut = new ReceiptSender(
                _receiptStorage,
                _emailSender,
                _userProfileReader,
                _logger,
                () => FakeNow
                );
        }
 public AuthenticationController(IUserProfileReader userProfileReader, IAuthenticationTokenProvider authenticationTokenProvider)
 {
     _userProfileReader           = userProfileReader;
     _authenticationTokenProvider = authenticationTokenProvider;
 }
示例#5
0
 public Handler(AppDbContext context, IMapper mapper, IUserProfileReader profileReader)
 {
     _context       = context;
     _mapper        = mapper;
     _profileReader = profileReader;
 }
 public ProfilePictureController(IUserProfileWriter userProfileWriter, IUserProfileReader userProfileReader, IAzureStorageManager storeFile)
 {
     _userProfileWriter = userProfileWriter;
     _userProfileReader = userProfileReader;
     _storeFile = storeFile;
 }
 public Handler(IUserProfileReader profileReader, IUserAccessor userAccessor)
 {
     _profileReader = profileReader;
 }
 public UserProfilesController(IUserProfileWriter userProfileWriter, IUserProfileReader userProfileReader, IContentDeliveryNetworkResolver cdnResolver)
 {
     _userProfileWriter = userProfileWriter;
     _userProfileReader = userProfileReader;
     _cdnResolver       = cdnResolver;
 }