public UserCreationService(IDataContextScopeFactory dbContextScopeFactory, IUserRepository userRepository)
 {
     if (dbContextScopeFactory == null) throw new ArgumentNullException("dbContextScopeFactory");
     if (userRepository == null) throw new ArgumentNullException("userRepository");
     _dbContextScopeFactory = dbContextScopeFactory;
     _userRepository = userRepository;
 }
 public UserCreditScoreService(IDataContextScopeFactory dbContextScopeFactory)
 {
     if (dbContextScopeFactory == null)
     {
         throw new ArgumentNullException("dbContextScopeFactory");
     }
     _dbContextScopeFactory = dbContextScopeFactory;
 }
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AggregationDataProvider" /> class.
        /// </summary>
        /// <param name="dataContextScopeFactory">The data context scope factory.</param>
        /// <param name="connectionStrings">The connection strings.</param>
        /// <param name="mapper">The mapper.</param>
        public AggregationDataProvider(
            IDataContextScopeFactory dataContextScopeFactory,
            IOptionsSnapshot <ConnectionStrings> connectionStrings,
            IMapper mapper)
        {
            this.dataContextScopeFactory = dataContextScopeFactory;
            this.connectionStrings       = connectionStrings?.Value;

            this.mapper = mapper;
        }
 public UserCreationService(IDataContextScopeFactory dbContextScopeFactory, IUserRepository userRepository)
 {
     if (dbContextScopeFactory == null)
     {
         throw new ArgumentNullException("dbContextScopeFactory");
     }
     if (userRepository == null)
     {
         throw new ArgumentNullException("userRepository");
     }
     _dbContextScopeFactory = dbContextScopeFactory;
     _userRepository        = userRepository;
 }
 public UserEmailService(IDataContextScopeFactory dbContextScopeFactory)
 {
     if (dbContextScopeFactory == null) throw new ArgumentNullException("dbContextScopeFactory");
     _dbContextScopeFactory = dbContextScopeFactory;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PersistedEntitySpecimenBuilder"/> class.
 /// </summary>
 /// <param name="entityType">Type of the entity.</param>
 /// <param name="dataContextScopeFactory">The data context scope factory.</param>
 public PersistedEntitiesSpecimenBuilder(Type entityType, IDataContextScopeFactory dataContextScopeFactory)
 {
     _entityType = entityType;
     _dataContextScopeFactory = dataContextScopeFactory;
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PersistedEntitySpecimenBuilder"/> class.
 /// </summary>
 /// <param name="entityType">Type of the entity.</param>
 /// <param name="dataContextScopeFactory">The data context scope factory.</param>
 public PersistedEntitySpecimenBuilder(Type entityType, IDataContextScopeFactory dataContextScopeFactory)
 {
     _entityType = entityType;
     _dataContextScopeFactory = dataContextScopeFactory;
 }