public CustomerFacade(ICustomerRepository customerRepository, IAddressRepository addressRepository, IAuth auth, IPasswordHandler passwordHandler)
 {
     _customerRepository = customerRepository;
     _addressRepository = addressRepository;
     _auth = auth;
     _passwordHandler = passwordHandler;
 }
Exemplo n.º 2
0
 public PersonService(
     IPersonRepository personRepository, 
     IPersonGroupRepository personGroupRepository, 
     IPermissionRepository permissionRepository, 
     IPersonRoleRepository personRoleRepository, 
     IPersonOptionalFieldRepository personOptionalFieldRepository, 
     IRelationshipRepository relationshipRepository,
     IChurchMatcherRepository churchMatcherRepository,
     IGroupRepository groupRepository,
     IFamilyRepository familyRepository,
     IEmailService emailService,
     IAddressRepository addressRepository,
     IPhotoRepository photoRepository)
 {
     _personRepository = personRepository;
     _personGroupRepository = personGroupRepository;
     _permissionRepository = permissionRepository;
     _personRoleRepository = personRoleRepository;
     _personOptionalFieldRepository = personOptionalFieldRepository;
     _relationshipRepository = relationshipRepository;
     _churchMatcherRepository = churchMatcherRepository;
     _groupRepository = groupRepository;
     _familyRepository = familyRepository;
     _emailService = emailService;
     _addressRepository = addressRepository;
     _photoRepository = photoRepository;
 }
        public ContactManager(IAddressRepository addressRepository, IAddressTypeRepository addressTypeRepository, IPhoneRepository phoneRepository,
                              IPhoneTypeRepository phoneTypeRepository,IProfileAddressRepository profileAddressRepository, IProfilePhoneRepository profilePhoneRepository,
                              IProfileRepository profileRepository)
        {
            if (addressRepository == null)
                throw new ArgumentNullException("addressRepository");

            if (addressTypeRepository == null)
                throw new ArgumentNullException("addressTypeRepository");

            if (phoneRepository == null)
                throw new ArgumentNullException("phoneRepository");

            if (phoneTypeRepository == null)
                throw new ArgumentNullException("phoneTypeRepository");

            if (profileAddressRepository == null)
                throw new ArgumentNullException("profileAddressRepository");

            if (profilePhoneRepository == null)
                throw new ArgumentNullException("profilePhoneRepository");

            if (profileRepository == null)
                throw new ArgumentNullException("profileRepository");

            _addressRepository = addressRepository;
            _addressTypeRepository = addressTypeRepository;
            _phoneRepository = phoneRepository;
            _phoneTypeRepository = phoneTypeRepository;
            _profileAddressRepository = profileAddressRepository;
            _profilePhoneRepository = profilePhoneRepository;
            _profileRepository = profileRepository;
        }
Exemplo n.º 4
0
 public CartController(IProductRepository repository, IOrderProcessor orderProcessor, IAddressCustomerRepository addressCustomerRepository, IUserRepository userRepository, IAddressRepository addressRepository)
 {
     _repository = repository;
     _orderProcessor = orderProcessor;
     _addressCustomerRepository = addressCustomerRepository;
     _userRepository = userRepository;
     _addressRepository = addressRepository;
 }
Exemplo n.º 5
0
 public EnquiriesController(IContactRepository contactRepository, IAddressRepository addressRepository, IEnquiryRepository enquiryRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquiryDetailsRepository)
 {
     this.contactRepository = contactRepository;
     this.addressRepository = addressRepository;
     this.enquiryRepository = enquiryRepository;
     this.statusRepository = statusRepository;
     this.enquiryDetailsRepository = enquiryDetailsRepository;
 }
Exemplo n.º 6
0
 public AccountController(IUserRepository userRepository, IAddressRepository addressRepository,
     IAddressCustomerRepository addressCustomerRepository, ISalesOrderHeader salesOrderHeader)
 {
     _userRepository = userRepository;
     _addressRepository = addressRepository;
     _addressCustomerRepository = addressCustomerRepository;
     _salesOrderHeader = salesOrderHeader;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchController"/> class.
 /// </summary>
 /// <param name="county">The county.</param>
 /// Created by SMK
 public SearchController(ICountyRepository countyRepository, 
     IRegionRepository regionRepository,
     IAddressRepository addressRepository)
 {
     this.countyRepository = countyRepository;
     this.regionRepository = regionRepository;
     this.addressRepository = addressRepository;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PackagesService"/> class.
 /// </summary>
 /// <param name="packageRepository">
 /// The package repository.
 /// </param>
 /// <param name="userRepository">
 /// The user repository.
 /// </param>
 /// <param name="addressRepository">
 /// The address Repository.
 /// </param>
 /// <param name="emailService">
 /// The email Service.
 /// </param>
 /// <param name="logger">
 /// The logger.
 /// </param>
 public PackagesService(IPackageRepository packageRepository, IUserRepository userRepository, IAddressRepository addressRepository, IEmailService emailService, ILogger logger)
     : base(logger)
 {
     this.packageRepository = packageRepository;
     this.userRepository = userRepository;
     this.addressRepository = addressRepository;
     this.emailService = emailService;
 }
Exemplo n.º 9
0
        public AddressService(IAddressRepository addressRepository, IReferenceGenerator referenceGenerator)
        {
            Check.If(addressRepository).IsNotNull();
            Check.If(referenceGenerator).IsNotNull();

            _addressRepository = addressRepository;
            _referenceGenerator = referenceGenerator;
        }
Exemplo n.º 10
0
 public AccountsController(IContactRepository contactRepository, IAddressRepository addressRepository, IEnquiryRepository enquiryRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquiryDetailsRepository, IClientRegisterRepository clientRegisterRepository)
 {
     this.contactRepository = contactRepository;
     this.addressRepository = addressRepository;
     this.enquiryRepository = enquiryRepository;
     this.statusRepository = statusRepository;
     this.enquiryDetailsRepository = enquiryDetailsRepository;
     this.clientRegisterRepository = clientRegisterRepository;
 }
 public CartController(IProductRepository repo, IOrderRepository orderRepo, IOrderItemRepository orderItemRepo, IOrderProcessor proc, IAddressRepository repoAddress, ICustomerRepository repoCustomer)
 {
     repository = repo;
     orderRepository = orderRepo;
     orderItemRepository = orderItemRepo;
     orderProcessor = proc;
     repositoryAddress = repoAddress;
     repositoryCustomer = repoCustomer;
 }
Exemplo n.º 12
0
 public TenantService(/*ILog logger,*/ IAddressRepository addressRepository, IUserRepository accountRepository, IUserManager userManager, IPropertyManager propertyManager, IPropertySignRequestManager propertySignRequestManager)
 {
     //_logger = logger;
     _addressRepository = addressRepository;
     _accountRepository = accountRepository;
     _userManager = userManager;
     _propertyManager = propertyManager;
     _propertySignRequestManager = propertySignRequestManager;
 }
Exemplo n.º 13
0
 public AccountManager() 
     {
     unitOfWork = new UnitOfWork();
     addressRepository = new AddressRepository(unitOfWork);
     userRepository = new UserRepository(unitOfWork);
     statesRepository = new StatesRepository(unitOfWork);
     webMembershipRepository = new WebMembershipRepository(unitOfWork);
     userSecQuestionRepository = new UserSecQuestionRepository(unitOfWork);
 }        
Exemplo n.º 14
0
 public LandlordService(IAddressRepository addressRepository, IUserRepository accountRepository, IUserManager userManager, IPropertyManager propertyManager, IPropertySignRequestManager propertySignRequestManager, IPropertyImageManager propertyImageManager)
 {
     _addressRepository = addressRepository;
     _accountRepository = accountRepository;
     _userManager = userManager;
     _propertyManager = propertyManager;
     _propertySignRequestManager = propertySignRequestManager;
     _propertyImageManager = propertyImageManager;
 }
Exemplo n.º 15
0
 public PlayerServices(IPlayerRepository playerRepository, IActivityStatusChangeRepository activityStatusChangeRepository, ITeamRepository teamRepository, IUserRepository userRepository, IClubRepository clubRepository, IAddressRepository addressRepository, IUserDetailRepository userDetailRepository)
 {
     _playerRepository = playerRepository;
     _activityStatusChangeRepository = activityStatusChangeRepository;
     _teamRepository = teamRepository;
     _userRepository = userRepository;
     _clubRepository = clubRepository;
     _addressRepository = addressRepository;
     _userDetailRepository = userDetailRepository;
 }
Exemplo n.º 16
0
 public InhabitantController(IPeopleRepository peopleRepo, 
     IAddressRepository addressRepo,
     ICountyRepository countyRepo,
     IProvinceRepository provinceRepo)
 {
     _peopleRepository = peopleRepo;
     _addressRepository = addressRepo;
     _countyRepository = countyRepo;
     _provinceRepository = provinceRepo;
 }
Exemplo n.º 17
0
 public AddressService()
 {
     _addressRepository = new AddressRepository();
     Mapper.CreateMap<DataCountry, Country>();
     Mapper.CreateMap<Country, DataCountry>();
     Mapper.CreateMap<DataState, State>();
     Mapper.CreateMap<State, DataState>();
     Mapper.CreateMap<DataCity, City>();
     Mapper.CreateMap<City, DataCity>();
 }
Exemplo n.º 18
0
 public ProductionController(IContactRepository contactRepository, IAddressRepository addressRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquirydetailsRepository, IEnquiryRepository enquiryRepository,IProjectRepository projectRepository,ITeamRepository teamRepository)
 {
     this.contactRepository = contactRepository;
     this.addressRepository = addressRepository;
     this.statusRepository = statusRepository;
     this.enquirydetailsRepository = enquirydetailsRepository;
     this.enquiryRepository = enquiryRepository;
     this.projectRepository = projectRepository;
     this.teamRepository = teamRepository;
 }
Exemplo n.º 19
0
 public UsersLogic(
     IUserRepository userRepository, 
     IAddressRepository addressRepository, 
     IEducationRepository educationRepository, 
     IMediaRepository mediaRepository)
 {
     _userRepository = userRepository;
     _addressRepository = addressRepository;
     _educationRepository = educationRepository;
     _mediaRepository = mediaRepository;
 }
Exemplo n.º 20
0
        public MainViewModel(IAddressRepository addressRepository, IProgressNotificationService progressNotificationService)
        {
            this.addressRepository = addressRepository;
            Addresses = addressRepository.GetAddresses().Select(a => new AddressViewModel(a)).ToList();

            this.progressNotificationService = progressNotificationService;

            LocateMe = new RelayCommand(SendMyLocationMessage);
            Nearest = new RelayCommand(SendNearestLocationMessage);
            Directions = new RelayCommand(SendNearestDirectionsMessage);
        }
        public void Setup()
        {
            Database.SetInitializer(new DropCreateDatabaseAlways<ContextDb>());
            _repository = new AddressRepository();
            _address = ObjectMother.GetAddress();

            using (var context = new ContextDb())
            {
                context.Addresses.Add(_address);
                context.SaveChanges();
            }
        }
Exemplo n.º 22
0
 public CustomerService()
 {
     _contactRepository              = new ContactRepository(context);
     _addressRepository              = new AddressRepository(context);
     _customerRepository             = new CustomerRepository(context);
     _docTransmittalRepository       = new DocTransmittalRepository(context);
     _custAddressRepository          = new CustAddressRepository(context);
     _custStatusRepository           = new CustStatusRepository(context);
     _nationalAccountRepository      = new NationalAccountRepository(context);
     _nationalAccountLevelRepository = new NationalAccountLevelRepository(context);
     _creditCardRepository           = new CreditCardRepository(context);
     _custHoldRepository             = new CustHoldRepository(context);
 }
Exemplo n.º 23
0
 public DBInitializer(
     CustomerAppDBContext ctx,
     ICityRepository cityRepository,
     ICustomerRepository customerRepository,
     IAddressRepository addressRepository,
     ICountryRepository countryRepository)
 {
     _ctx = ctx;
     _customerRepository = customerRepository;
     _addressRepository  = addressRepository;
     _cityRepository     = cityRepository;
     _countryRepository  = countryRepository;
 }
 public PatientController(/*IDataProtectionProvider providerIDataProtectionService protectionServices,*/ IAccountRepository accountrepo, IContactDetailsRepository contactDetailsRepo, IAddressRepository addressRepo, IPatientAppointmentReferralRepository IPAR, IAppointmentRepository appointmentRepo, ITimesRepository timesRepo)
 {
     appointmentRepository    = appointmentRepo;
     accountRepository        = accountrepo;
     contactDetailsRepository = contactDetailsRepo;
     addressRepository        = addressRepo;
     parRepository            = IPAR;
     timesRepository          = timesRepo;
     //protectionService = protectionServices;
     //_protector = provider.CreateProtector("c90bab3c-8f97 -461b-af78-16fcfc574edb");//GetType().FullName);
     //_protector = provider.CreateProtector(GetType().FullName);
     //_protector = provider.CreateProtector("key-d3431142-2392-4951-a994-125bf74c8d2b");
 }
Exemplo n.º 25
0
        public Worker(DbContext context)
        {
            Context = context;

            Subscribers = new SubscriberRepositoy()
            {
                Worker = this
            };
            Address = new AddressRepository()
            {
                Worker = this
            };
        }
Exemplo n.º 26
0
        public RemoveAddressTest()
        {
            _mapper = MapperHelper.GetMapper();

            _addressRepository = Substitute.For <IAddressRepository>();

            _logger = LoggerHelper.GetLogger <RemoveAddressHandler>();

            _handler = new RemoveAddressHandler(
                _mapper,
                _addressRepository,
                _logger);
        }
 public ProvidersController(
     IProviderRepository repository,
     IProviderService service,
     IAddressRepository address,
     IMapper mapper,
     INotifier notifier,
     IUser user) : base(notifier, user)
 {
     _providerRepository = repository;
     _providerService    = service;
     _mapper             = mapper;
     _addressRepository  = address;
 }
 public DeleteNaturalPersonService(
     INotifier notifier,
     IUnitOfWork unitOfWork,
     IAddressRepository addressRepository,
     IDocumentRepository documentRepository,
     INaturalPersonRepository naturalPersonRepository)
     : base(notifier)
 {
     _unitOfWork = unitOfWork;
     _addressRepository = addressRepository;
     _documentRepository = documentRepository;
     _naturalPersonRepository = naturalPersonRepository;
 }
Exemplo n.º 29
0
 public AddressBookModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <ChangePasswordModel> logger,
     IAddressRepository addressRepository,
     IDefaultAddressRepository defaultAddressRepository)
 {
     _userManager = userManager;
     _defaultAddressRepository = defaultAddressRepository;
     _addressRepository        = addressRepository;
     _signInManager            = signInManager;
     _logger = logger;
 }
Exemplo n.º 30
0
 public ContactsController(
     IAddressRepository addressRepository,
     IContactsRepository contactsRepository,
     IContactDataRepository contactDataRepository,
     IContactTagRepository contactTagRepository,
     IMapper mapper)
 {
     this.mapper                = mapper;
     this.addressRepository     = addressRepository;
     this.contactsRepository    = contactsRepository;
     this.contactDataRepository = contactDataRepository;
     this.contactTagRepository  = contactTagRepository;
 }
Exemplo n.º 31
0
 public OrderController(IServiceProvider provider,
                        IConfiguration config,
                        IOrderRepository repo,
                        Cart cart,
                        ICustomerRepository custRepo,
                        IAddressRepository addressRepo)
     : base(provider, config)
 {
     _orderRepository    = repo;
     _cart               = cart;
     _customerRepository = custRepo;
     _addressRepository  = addressRepo;
 }
Exemplo n.º 32
0
        public PersonRepository(IAddressRepository addressService)
        {
            _arep = addressService;

            if (_nextId < 1)
            {
                _nextId = 1;
            }
            if (_persons == null)
            {
                _persons = new List <Person>();
            }
        }
Exemplo n.º 33
0
 public CustomerController(
     ICustomerRepository customerRepository,
     IUserRepository userRepository,
     IAddressRepository addressRepository,
     ILogger <CustomerController> logger,
     IConfiguration configuration)
 {
     _logger             = logger;
     _customerRepository = customerRepository;
     _userRepository     = userRepository;
     _addressRepository  = addressRepository;
     _configuration      = configuration;
 }
Exemplo n.º 34
0
        //private readonly RoleManager<Role> _roleManager;

        public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, EtsyContext db, IAddressRepository addressRepo = null)
        {
            _userManager   = userManager;
            _signInManager = signInManager;
            _db            = db;
            if (addressRepo == null)
            {
                _addressRepo = new EFAddressRepository();
            }
            else
            {
                _addressRepo = addressRepo;
            }
        }
Exemplo n.º 35
0
        public void should_get_person_address_model_by_city_order_by_id(Type repositoryType)
        {
            IAddressRepository addressRepository = CreateRepository(repositoryType, Session);

            IList <Address> addresses = addressRepository.GetByCity("Bothell");

            Assert.Equal(
                addresses.Select(a => a.Id),
                new[]
            {
                1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
                17, 18, 19, 20, 21, 40, 834, 868, 18249, 26486
            });
        }
Exemplo n.º 36
0
        public async Task should_do_async_query(Type repositoryType)
        {
            IAddressRepository addressRepository = CreateRepository(repositoryType, Session);

            IList <Address> addresses = await addressRepository.GetByCityAsync("Bothell");

            Assert.Equal(
                addresses.Select(a => a.Id),
                new[]
            {
                1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
                17, 18, 19, 20, 21, 40, 834, 868, 18249, 26486
            });
        }
 public SuppliersController(ISupplierRepository supplierRepository,
                            ISupplierService supplierService,
                            IAddressRepository addressRepository,
                            IMapper mapper,
                            INotifier notifier,
                            IUser user,
                            ILogger <SuppliersController> logger) : base(notifier, user)
 {
     _supplierRepository = supplierRepository;
     _supplierService    = supplierService;
     _addressRepository  = addressRepository;
     _mapper             = mapper;
     _logger             = logger;
 }
Exemplo n.º 38
0
 public AddressValidator(
     IAddressRepository arg0,
     ICountryRegionService arg1,
     IAccountRepository arg2,
     ICompanyRepository arg3,
     IOrganizationPermissionService arg4
     ) : base()
 {
     field0 = arg0;
     field1 = arg1;
     field2 = arg2;
     field3 = arg3;
     field4 = arg4;
 }
Exemplo n.º 39
0
        public PersonFileRepository(IAddressRepository addressService)
        {
            _arep = addressService;

            _nextId  = 1;
            _persons = new List <Person>();

            timer           = new Timer(2000);
            timer.Elapsed  += SaveChanges;
            timer.AutoReset = false;
            timer.Enabled   = false;

            ReadJsonFromFile();
        }
 public TurbineService(ITurbineRepository turbineRepository,
                       ITurbineTypeRepository turbineTypeRepository,
                       IOperatorRepository operatorRepository,
                       IFarmRepository farmRepository,
                       IAddressRepository addressRepository,
                       IAppImageRepository appImageRepository)
 {
     _turbineRepository     = turbineRepository;
     _turbineTypeRepository = turbineTypeRepository;
     _operatorRepository    = operatorRepository;
     _farmRepository        = farmRepository;
     _addressRepository     = addressRepository;
     _appImageRepository    = appImageRepository;
 }
Exemplo n.º 41
0
 public UserService(
     IRoleRepository roleRepository,
     IAccountUserRepository accountUserRepository,
     IEncryptionService encryptionService,
     IAccountUserRoleRepository accountUserRoleRepository,
     IAddressRepository addressRepository
     )
 {
     this._roleRepository            = roleRepository;
     this._accountUserRepository     = accountUserRepository;
     this._encryptionService         = encryptionService;
     this._accountUserRoleRepository = accountUserRoleRepository;
     this._addressRepository         = addressRepository;
 }
Exemplo n.º 42
0
        public AdapterExample(IAddressRepository repo, IMessageService messageService)
        {
            if (repo == null)
            {
                throw new ArgumentNullException(nameof(repo));
            }
            this.repo = repo;

            if (messageService == null)
            {
                throw new ArgumentNullException(nameof(messageService));
            }
            this.messageService = messageService;
        }
Exemplo n.º 43
0
 public RoasterAdminService(IRoasterRepository roasterRepository,
                            IPictureRepository pictureRepository,
                            IRoasterTagRepository roasterTagRepository,
                            ITagRepository tagRepository,
                            IAddressRepository addressRepository,
                            ILogger logger)
 {
     _roasterRepository    = roasterRepository ?? throw new ArgumentNullException(nameof(roasterRepository));
     _roasterTagRepository = roasterTagRepository ?? throw new ArgumentNullException(nameof(roasterTagRepository));
     _pictureRepository    = pictureRepository ?? throw new ArgumentNullException(nameof(pictureRepository));
     _tagRepository        = tagRepository ?? throw new ArgumentNullException(nameof(tagRepository));
     _addressReposiotry    = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository));
     _logger = logger ?? throw new ArgumentNullException(nameof(addressRepository));
 }
Exemplo n.º 44
0
 public SaleService(ISaleValidator saleValidator, ISaleRepository saleRepository, ICustomerRepository customerRepository, IAddressRepository addressRepository, IOrderRepository orderRepository, ISaleDetailRepository saleDetailRepository, IInvoiceRepository invoiceRepository, IProductRepository productRepository, IDeliveryRepository deliveryRepository, ICouponCodeRepository couponCodeRepository, IPaymentProviderFactory paymentProviderFactory)
 {
     _saleValidator          = saleValidator ?? throw new ArgumentNullException(nameof(saleValidator));
     _saleRepository         = saleRepository ?? throw new ArgumentNullException(nameof(saleRepository));
     _customerRepository     = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository));
     _addressRepository      = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository));
     _orderRepository        = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _saleDetailRepository   = saleDetailRepository ?? throw new ArgumentNullException(nameof(saleDetailRepository));
     _invoiceRepository      = invoiceRepository ?? throw new ArgumentNullException(nameof(invoiceRepository));
     _productRepository      = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     _deliveryRepository     = deliveryRepository ?? throw new ArgumentNullException(nameof(deliveryRepository));
     _couponCodeRepository   = couponCodeRepository ?? throw new ArgumentNullException(nameof(couponCodeRepository));
     _paymentProviderFactory = paymentProviderFactory ?? throw new ArgumentNullException(nameof(paymentProviderFactory));
 }
Exemplo n.º 45
0
        public AdapterExample(IAddressRepository repository, IMessageService service)
        {
            if (repository == null)
            {
                throw new ArgumentNullException(nameof(repository));
            }
            this.repository = repository;

            if (service == null)
            {
                throw new ArgumentNullException(nameof(service));
            }
            this.service = service;
        }
Exemplo n.º 46
0
 public OngService(IOngRepository ongRepository,
                   IPersonRepository personRepository,
                   IPhotoRepository photoRepository,
                   IAddressRepository addressRepository,
                   IUserRepository userRepository,
                   IMapper mapper)
 {
     _ongRepository     = ongRepository;
     _personRepository  = personRepository;
     _photoRepository   = photoRepository;
     _addressRepository = addressRepository;
     _userRepository    = userRepository;
     _mapper            = mapper;
 }
Exemplo n.º 47
0
 public DetailModel(IProductImagesRepository productImagesRepository, IOrderItemRepository orderItemRepository, IAddressRepository addressRepository, IOrderRepository orderRepository, UserManager <ApplicationUser> userManager, ICartRepository cartRepository, ICartDetailRepository cartDetailRepository, IItemRepository itemRepository, ICommentRepository commentRepository, IUserRepository userRepository, DAL.EF.OnlineStoreDbContext context)
 {
     _productImagesRepository = productImagesRepository;
     _orderItemRepository     = orderItemRepository;
     _addressRepository       = addressRepository;
     _orderRepository         = orderRepository;
     _cartRepository          = cartRepository;
     _cartDetailRepository    = cartDetailRepository;
     _userManager             = userManager;
     _itemRepository          = itemRepository;
     _commentRepository       = commentRepository;
     _userRepository          = userRepository;
     CustomerCommentViewModel = new List <CustomerCommentViewModel>();
 }
Exemplo n.º 48
0
 public PaymentController(
     CartCookieManager cartCookieManager,
     ShippingInfoCookieManager shippingInfoCookieManager,
     IProductRepository productRepository,
     IAddressRepository addressRepository,
     CustomerSession customerSession,
     PagarMeManager pagarMeManager)
 {
     this.cartCookieManager         = cartCookieManager;
     this.shippingInfoCookieManager = shippingInfoCookieManager;
     this.addressRepository         = addressRepository;
     this.productRepository         = productRepository;
     this.customerSession           = customerSession;
     this.pagarMeManager            = pagarMeManager;
 }
Exemplo n.º 49
0
 public ManageController(IAddressRepository addressRepo, IContactInfoRepository contactInfoRepo,
                         IUserDetailRepository userDetailRepo,
                         IOrderRepository orderRepo, ICreditCardRepository creditCardRepo,
                         IGiftCardRepository giftCardRepo, IFavorRestaurantRepository favorRestaurantRepo,
                         IVoteRepository VoteRepo)
 {
     AddressRepository         = addressRepo;
     ContactInfoRepository     = contactInfoRepo;
     UserDetailRepository      = userDetailRepo;
     OrderRepository           = orderRepo;
     CreditCardRepository      = creditCardRepo;
     GiftCardRepository        = giftCardRepo;
     FavorRestaurantRepository = favorRestaurantRepo;
     VoteRepository            = VoteRepo;
 }
Exemplo n.º 50
0
        public SenderViewModel(INodeRepository nodeRepository, IAddressRepository addressRepository, IBluetoothMeshContext context, IEventAggregator eventAggregator)
        {
            _nodeRepository = nodeRepository;
            Nodes           = new List <NodeModel>();

            nodeRepository.GetAll().ToList().ForEach(x => Nodes.Add(new NodeModel(x)));
            _addressRepository   = addressRepository;
            _context             = context;
            this.eventAggregator = eventAggregator;

            SelectedNode          = new NodeModel(nodeRepository.Get(1));
            SelectedProcedureType = Procedure.DefaultTTL.ToString();
            SelectedMessageType   = MessageType.GET.ToString();
            SuccedMessagesCounter = 0;
        }
Exemplo n.º 51
0
 public CustomerAddressAppService(
     ICustomerAddressRepository customerAddressRepository,
     IAddressRepository addressRepository,
     ICountryRepository countryRepository,
     IStateOrProvinceRepository stateOrProvinceRepository,
     IDistrictRepository districtRepository,
     ICustomerLookupService customerLookupService)
 {
     _customerAddressRepository = customerAddressRepository;
     _addressRepository         = addressRepository;
     _countryRepository         = countryRepository;
     _stateOrProvinceRepository = stateOrProvinceRepository;
     _districtRepository        = districtRepository;
     _customerLookupService     = customerLookupService;
 }
Exemplo n.º 52
0
 public ClubServices(IClubRepository clubRepository,
                         IWelfareOfficerRepository welfareOfficerRepository,
                         IChairmanRepository chairmanRepository,
                         IClubAdminRepository clubAdminRepository,
                         IUserDetailRepository userDetailRepository,
                         IUserRepository userRepository,
                         IAddressRepository addressRepository)
 {
     _clubRepository = clubRepository;
     _welfareOfficerRepository = welfareOfficerRepository;
     _chairmanRepository = chairmanRepository;
     _clubAdminRepository = clubAdminRepository;
     _userDetailRepository = userDetailRepository;
     _userRepository = userRepository;
     _addressRepository = addressRepository;
 }
Exemplo n.º 53
0
 public ApplicationDetailsService(IApplicationRepository applicationRepository, IBankAgencyRepository bankAgencyRepository, IApplicantRepository applicantRepository,
     IEmploymentRepository employmentRepository, IAddressRepository addressRepository, IContactRepository contactRepository,
     IBankAccountRepository bankAccountRepository, IBankCardRepository bankCardRepository, INoteRepository noteRepository, IDocumentRepository documentRepository,
     IReasonRepository reasonRepository, IActionLogRepository actionLogRepository)
 {
     _applicationRepository = applicationRepository;
     _bankAgencyRepository = bankAgencyRepository;
     _applicantRepository = applicantRepository;
     _employmentRepository = employmentRepository;
     _addressRepository = addressRepository;
     _contactRepository = contactRepository;
     _bankAccountRepository = bankAccountRepository;
     _bankCardRepository = bankCardRepository;
     _noteRepository = noteRepository;
     _documentRepository = documentRepository;
     _reasonRepository = reasonRepository;
     _actionLogRepository = actionLogRepository;
 }
Exemplo n.º 54
0
 public PostServices()
 {
     _postRepository=new PostRepository();
        _addressRepository = new AddressRepository();
        Mapper.CreateMap<DataPost, Post>();
        Mapper.CreateMap<Post, DataPost>();
        Mapper.CreateMap<DataCategory, Category>();
        Mapper.CreateMap<Category, DataCategory>();
        Mapper.CreateMap<DataCategory, Category>();
        Mapper.CreateMap<Category, DataCategory>();
        Mapper.CreateMap<DataAddress, Address>();
        Mapper.CreateMap<Address, DataAddress>();
        Mapper.CreateMap<Country, DataCountry>();
        Mapper.CreateMap<DataCountry, Country>();
        Mapper.CreateMap<State, DataState>();
        Mapper.CreateMap<DataState, State>();
        Mapper.CreateMap<City, DataCity>();
        Mapper.CreateMap<DataCity, City>();
 }
Exemplo n.º 55
0
 public UserServices(IUserRepository userRepository, IClubAdminRepository clubAdminRepository,
     ICoachRepository coachRepository, IClubRepository clubRepository,
     IWelfareOfficerRepository welfareOfficerRepository, IScoutRepository scoutRepository,
     IPhysiotherapistRepository physiotherapistRepository, IHeadOfEducationRepository headOfEducationRepository,
     IHeadOfAcademyRepository headOfAcademyRepository, ISportScientistRepository sportScientistRepository,
     IAddressRepository addressRepository, IUserDetailRepository userDetailRepository, IPlayerRepository playerRepository)
 {
     _userRepository = userRepository;
     _clubAdminRepository = clubAdminRepository;
     _coachRepository = coachRepository;
     _clubRepository = clubRepository;
     _welfareOfficerRepository = welfareOfficerRepository;
     _scoutRepository = scoutRepository;
     _physiotherapistRepository = physiotherapistRepository;
     _headOfEducationRepository = headOfEducationRepository;
     _headOfAcademyRepository = headOfAcademyRepository;
     _sportScientistRepository = sportScientistRepository;
     _addressRepository = addressRepository;
     _userDetailRepository = userDetailRepository;
     _playerRepository = playerRepository;
 }
Exemplo n.º 56
0
        public AccountUserService()
        {
            _accountUserRepository = new AccountUserRepository();
            _addressRepository = new AddressRepository();

            Mapper.CreateMap<DataAccountUser, AccountUser>();
            Mapper.CreateMap<AccountUser, DataAccountUser>();

            Mapper.CreateMap<DataAddress, Address>();
            Mapper.CreateMap<Address, DataAddress>();

            Mapper.CreateMap<DataZipCode, ZipCode>();
            Mapper.CreateMap<ZipCode, DataZipCode>();

            Mapper.CreateMap<DataCountry, Country>();
            Mapper.CreateMap<Country, DataCountry>();

            Mapper.CreateMap<DataState, State>();
            Mapper.CreateMap<State, DataState>();

            Mapper.CreateMap<DataCity, City>();
            Mapper.CreateMap<City, DataCity>();
        }
Exemplo n.º 57
0
 public UserService()
 {
     #region AutoMap
     Mapper.CreateMap<User, UserViewModel>();
     Mapper.CreateMap<UserViewModel, User>();
     Mapper.CreateMap<Address, AddressViewModel>();
     Mapper.CreateMap<AddressViewModel, Address>();
     Mapper.CreateMap<Person, PersonViewModel>();
     Mapper.CreateMap<PersonViewModel, Person>();
     Mapper.CreateMap<Street, StreetViewModel>();
     Mapper.CreateMap<StreetViewModel, Street>();
     Mapper.CreateMap<City, CityViewModel>();
     Mapper.CreateMap<CityViewModel, City>();
     Mapper.CreateMap<Country, CountryViewModel>();
     Mapper.CreateMap<CountryViewModel, Country>();
     Mapper.CreateMap<PhoneNumbers, PhoneNumberViewModel>();
     Mapper.CreateMap<PhoneNumberViewModel, PhoneNumbers>();
     Mapper.CreateMap<List<User>, List<UserViewModel>>();
     Mapper.CreateMap<List<UserViewModel>, List<User>>();
     Mapper.CreateMap<List<PhoneNumbers>, List<PhoneNumberViewModel>>();
     Mapper.CreateMap<List<PhoneNumberViewModel>, List<PhoneNumbers>>();
     Mapper.CreateMap<List<Address>, List<AddressViewModel>>();
     Mapper.CreateMap<List<AddressViewModel>, List<Address>>();
     Mapper.CreateMap<List<Person>, List<PersonViewModel>>();
     Mapper.CreateMap<List<PersonViewModel>, List<Person>>();
     Mapper.CreateMap<List<Street>, List<StreetViewModel>>();
     Mapper.CreateMap<List<StreetViewModel>, List<Street>>();
     Mapper.CreateMap<List<City>, List<CityViewModel>>();
     Mapper.CreateMap<List<CityViewModel>, List<City>>();
     Mapper.CreateMap<List<Country>, List<CountryViewModel>>();
     Mapper.CreateMap<List<CountryViewModel>, List<Country>>();
     #endregion
     repository = new UserRepositoryEF();
     repositoryAddress = new AddressRepository();
     repositoryPerson = new PersonRepositoryEF();
 }
Exemplo n.º 58
0
 //TODO: Refactor IUnitOfWork so the I____Repository can be removed from the constructor
 public AddressController(IUnitOfWork uow, IAddressRepository repository)
 {
     _uow = uow;
     _repository = repository;
 }
Exemplo n.º 59
0
 public AddressLogic(IAddressRepository addressRepository)
 {
     _addressRepository = addressRepository;
 }
 public AddressService(IAddressRepository addressRepository)
 {
     _addressRepository = addressRepository;
 }