public UserService(IUserAddressRepository userAddressRepository, IUserRepository userRepository, IUserInfoRepository userInfoRepository, IUnitOfWork unitOfWork)
 {
     _userAddressRepository = userAddressRepository;
     _userRepository = userRepository;
     _userInfoRepository = userInfoRepository;
     _unitOfWork = unitOfWork;
 }
Exemple #2
0
        public void MyTestInitialize()
        {
            this.scope = new TransactionScope(TransactionScopeOption.RequiresNew);

            var context = new FactWebContext();

            this.repository = new UserAddressRepository(context);
        }
Exemple #3
0
 public AddressController(IAddressRepository addressRepository,
                          ICityRepository cityRepository,
                          ICountryRepository countryRepository,
                          IUserAddressRepository userAddressRepository,
                          IUserRepository userRepository)
 {
     _addressRepository     = addressRepository;
     _cityRepository        = cityRepository;
     _countryRepository     = countryRepository;
     _userAddressRepository = userAddressRepository;
     _userRepository        = userRepository;
 }
 public CreateUserCommandHandler(IUserRepository userRepository,
                                 IUserAddressRepository userAddressRepository, IUserPreferencesRepository userPreferencesRepository,
                                 IMapper mapper, IEmailService emailService, ILogger <CreateUserCommand> logger,
                                 IEncryptDecryptManager encryptDecryptManager)
 {
     _userRepository            = userRepository;
     _userAddressRepository     = userAddressRepository;
     _userPreferencesRepository = userPreferencesRepository;
     _mapper       = mapper;
     _emailService = emailService;
     _logger       = logger;
     this.encryptDecryptManager = encryptDecryptManager;
 }
 public AddressService(IUserAddressRepository userAddressRepository, ILogger <AddressService> logger)
 {
     _userAddressRepository = userAddressRepository ?? throw new ArgumentNullException(nameof(UserAddressRepository));;
     _logger = logger;
 }
 public UserAddressService(IUserAddressRepository userAddressRepository)
 {
     _userAddressRepository = userAddressRepository;
 }
 public UserAddressService(IUserAddressRepository repository, IUnitOfWork unitOfWork)
 {
     _repository = repository;
     _unitOfWork = unitOfWork;
 }
Exemple #8
0
 public UserAddressService(IUserAddressRepository repository) : base(repository)
 {
 }
Exemple #9
0
 public UserAddressService(IUserAddressRepository IUserAddressRepository)
 {
     this.IUserAddressRepository = IUserAddressRepository;
 }
Exemple #10
0
 public UserAddressService(IUserAddressRepository UserAddressRepository)
 {
     this.UserAddressRepository = UserAddressRepository;
 }
Exemple #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserService"/> class.
 /// </summary>
 /// <param name="userAddressRepository">The user address repository.</param>
 /// <param name="addressRepository">The address repository.</param>
 public UserService(IUserAddressRepository userAddressRepository, IAddressRepository addressRepository)
 {
     _userAddressRepository = userAddressRepository;
     _addressRepository     = addressRepository;
 }
 public UserAddressService(IUserAddressRepository userAddress)
 {
     _userAddress = userAddress;
 }
 public UserDemographicsDataService(IUserRepository userRepository, IUserAddressRepository userAddressRepository)
 {
     _userRepository        = userRepository;
     _userAddressRepository = userAddressRepository;
 }
Exemple #14
0
 public UserAddressDetailService(IUserAddressRepository userAddressRepository, IUnitOfWork unitOfWork)
 {
     this._userAddressRepository = userAddressRepository;
     _unitOfWork = unitOfWork;
 }
Exemple #15
0
 public AdminAddressesController(IUserAddressRepository repo)
 {
     repository = repo;
 }