public ContactFolderContactsController(IContactFolderRepository contactfolderRepository, ICompanyRepository companyRepository, IContactRepository contactRepository, IContactFolderContactRepository contactfoldercontactRepository)
 {
     this.contactfolderRepository = contactfolderRepository;
     this.companyRepository = companyRepository;
     this.contactRepository = contactRepository;
     this.contactfoldercontactRepository = contactfoldercontactRepository;
 }
Example #2
0
        public AddressBookViewModel(IContactRepository repository)
        {
            AddNewContactCommand = new DelegateCommand(parameter => ExecuteAddNewContact(), parameter => CanExecuteAddNewContact());
            SaveContactCommand = new DelegateCommand(parameter => ExecuteSaveContact(), parameter => CanExecuteSaveContact());

            Contacts = new ObservableCollection<Contact>(repository.GetContacts());
        }
Example #3
0
        public ContactService(IContactAuthenticationHandler authenticationHandler,IContactRepository contactRepository, 
            IContactSecondaryRepository secondaryContactRepository,
            IContactSynchroniser contactSynchroniser
            )
        {
            if (contactRepository == null)
            {
                throw new ArgumentNullException("contactRepository");
            }
            _contactRepository = contactRepository;
            if (secondaryContactRepository == null)
            {
                throw new ArgumentNullException("secondaryContactRepository");
            }
            _secondaryContactRepository = secondaryContactRepository;

            if (authenticationHandler == null)
            {
                throw new ArgumentNullException("authenticationHandler");
            }
            _authenticationHandler = authenticationHandler;
            if (contactSynchroniser == null)
            {
                throw new ArgumentNullException("contactSynchroniser");
            }
            _contactSynchroniser = contactSynchroniser;
        }
Example #4
0
 static ContactService()
 {
     ContactService.unitOfWork = new UnitOfWork();
     ContactService.repository = 
         RepositoryFactory.GetRepository<IContactRepository,
         Contact>(ContactService.unitOfWork);
 }
 public ContactViewModelBuilder(IContactRepository contactRepository, ICostCentreRepository costCentreRepository, IContactTypeRepository contactTypeRepository, IUserRepository userRepository)
 {
     _contactRepository = contactRepository;
     _costCentreRepository = costCentreRepository;
     _contactTypeRepository = contactTypeRepository;
     _userRepository = userRepository;
 }
 public void Initialize()
 {
     _repository = new ContactRepository();
     _repository.Add(new Contact { Id = 1, Name = "Contact one", Email = "*****@*****.**", Phone = "555-1234" });
     _repository.Add(new Contact { Id = 2, Name = "Contact two", Email = "*****@*****.**", Phone = "555-2222" });
     _repository.Add(new Contact { Id = 3, Name = "Contact three", Email = "*****@*****.**", Phone = "555-3333" });
 }
 public RegisterController(IContactRepository contacts, IStoreRepository stores,
     IContactQueue queue)
 {
     contactRepository = contacts;
     storeRepository = stores;
     contactQueue = queue;
 }
Example #8
0
 public CompanyEmailsController(ICompanyRepository companyRepository, IContactRepository contactRepository, IUserRepository userRepository, ICompanyEmailRepository companyemailRepository)
 {
     this.companyRepository = companyRepository;
     this.contactRepository = contactRepository;
     this.userRepository = userRepository;
     this.companyemailRepository = companyemailRepository;
 }
        public ActionResult Create(Contact contact, IContactRepository contacts)
        {
            if (contact.Name != "123")
            {
                this.ModelState.AddModelError("Name", "Must be 123");
            }

            if (!this.ModelState.IsValid)
            {
                return View();
            }

            //Contact contact = new Contact();

            //UpdateModel(contact);

            //if (string.IsNullOrEmpty(contact.Name))
            //{
            //}

            //
            //  Update database
            //

            return View();
        }
 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;
 }
 /// <summary>
 ///In constructor, we can get needed classes/interfaces.
 ///They are sent here by dependency injection system automatically.
 /// </summary>
 public JobAppService(IJobRepository jobRepository, UserManager userManager, IAccountRepository accountRepository, IContactRepository contactrepository)
 {
     _jobRepository = jobRepository;
     _userManager = userManager;
     _accountRepository = accountRepository;
     _contactRepository = contactrepository;
    
 }
Example #12
0
 public ContactController(IUnitOfWork uow, IContactRepository ContactRepository,
     IUserAccountRepository DefineUserRepository)
 {
     _uow = uow;
     _RContact = ContactRepository;
     _RDefineUser = DefineUserRepository;
     EDefineUser = new UserAccountExtentions(_RDefineUser);
     EContact = new ContactExtensions(_RContact, _RDefineUser);
 }
Example #13
0
        public ContactController(IContactRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.ContactRepository = repository;
        }
Example #14
0
 /// <summary>
 /// DI
 /// </summary>
 /// <param name="contactRepository"></param>
 /// <param name="contactFactory"></param>
 /// <param name="entityRepository"></param>
 public ContactHandler(
     IContactRepository contactRepository,
     IContactFactory contactFactory,
     IEntityRepository<IEndowmentEntity> entityRepository)
 {
     _contactRepository = contactRepository;
     _contactFactory = contactFactory;
     _entityRepository = entityRepository;
 }
 public ContactGalleryAlbumsHub(IContactRepository contactRepository, IEnumerable<IGalleryProvider> galleryProviders, ILoginProvider sessionProvider, ILoggerFactory loggerFactory)
 {
     Debug.Print("ContactGalleryAlbumsHub.ctor()");
     _contactRepository = contactRepository;
     _galleryProviders = galleryProviders.ToArray();
     _sessionProvider = sessionProvider;
     _logger = loggerFactory.CreateLogger(GetType());
     _logger.Trace("ContactGalleryAlbumsHub.ctor(galleryProviders:{0})", string.Join(",", _galleryProviders.Select(cp => cp.GetType().Name)));
 }
 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;
 }
 private void InitializeRepositories()
 {
     _userRepository = new UserEntityRepository();
     _sectorRepository = new IndustrialSectorEntityRepository();
     _taskRepository = new TaskEntityRepository();
     _contactRepository = new ContactEntityRepository();
     _accountRepository = new AccountEntityRepository();
     _opportunityRepository = new OpportunityEntityRepository();
 }
 public ContactCalendarEventsHub(IContactRepository contactRepository, IEnumerable<ICalendarProvider> calendarProviders, ILoginProvider sessionProvider, ILoggerFactory loggerFactory)
 {
     Debug.Print("ContactCalendarEventsHub.ctor()");
     _contactRepository = contactRepository;
     _calendarProviders = calendarProviders.ToArray();
     _sessionProvider = sessionProvider;
     _logger = loggerFactory.CreateLogger(GetType());
     _logger.Trace("ContactCalendarEventsHub.ctor(calendarProviders:{0})", string.Join(",", _calendarProviders.Select(cp=>cp.GetType().Name)));
 }
Example #19
0
        public ContactService(IUnitOfWork unitOfWork, IContactRepository contactRepository)
        {
            if (unitOfWork == null)
                throw new ArgumentNullException("unitOfWork");
            if (contactRepository == null)
                throw new ArgumentNullException("contactRepository");

            _unitOfWork = unitOfWork;
            _contactRepository = contactRepository;
        }
 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;
 }
Example #21
0
 static ProjectService()
 {
     ProjectService.unitOfWork = new UnitOfWork();
     ProjectService.projectRepository = 
         RepositoryFactory.GetRepository<IProjectRepository, 
         Project>(ProjectService.unitOfWork);
     ProjectService.contactRepository =
         RepositoryFactory.GetRepository<IContactRepository,
         Contact>(ProjectService.unitOfWork);
 }
        public void SetUp()
        {
            invoiceRepository = MockRepository.GenerateMock<IInvoiceRepository>();
            accountRepository = MockRepository.GenerateMock<IAccountRepository>();
            contactRepository = MockRepository.GenerateMock<IContactRepository>();
            ewayProcessedDataRepository = MockRepository.GenerateMock<IEwayProcessedDataRepository>();
            invoiceHardcopyRepository = MockRepository.GenerateMock<IInvoiceHardcopyRepository>();

            ewayService = new EwayPaymentsService(invoiceRepository, accountRepository, contactRepository, ewayProcessedDataRepository, invoiceHardcopyRepository);
        }
Example #23
0
 public ContactsController(ICompanyRepository companyRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IContactProfessionTypeRepository contactprofessiontypeRepository, IRatingScaleRepository ratingscaleRepository, IUserRepository userRepository, IContactRepository contactRepository)
 {
     this.companyRepository = companyRepository;
     this.countryRepository = countryRepository;
     this.stateRepository = stateRepository;
     this.contactprofessiontypeRepository = contactprofessiontypeRepository;
     this.ratingscaleRepository = ratingscaleRepository;
     this.userRepository = userRepository;
     this.contactRepository = contactRepository;
 }
Example #24
0
 public AccountService(IAccountRepository accountRepository, IContactRepository contactRepository, ICompanyRepository companyRepository, 
     INumberGeneratorService generatorService, IInvoiceRepository invoiceRepository, IInvoicingService invoicingService)
 {
     _accountRepository = accountRepository;
     _contactRepository = contactRepository;
     _companyRepository = companyRepository;
     _generator = generatorService;
     _invoiceRepository = invoiceRepository;
     _invoicingService = invoicingService;
 }
 public ApplicantSubmissionInfoesController(IApplicantRepository applicantRepository, IUserRepository userRepository, IRequisitionRepository requisitionRepository, ICompanyRepository companyRepository, IContactRepository contactRepository, IApplicantSubmissionFeedbackCategoryRepository applicantsubmissionfeedbackcategoryRepository, IApplicantSubmissionInfoRepository applicantsubmissioninfoRepository)
 {
     this.applicantRepository = applicantRepository;
     this.userRepository = userRepository;
     this.requisitionRepository = requisitionRepository;
     this.companyRepository = companyRepository;
     this.contactRepository = contactRepository;
     this.applicantsubmissionfeedbackcategoryRepository = applicantsubmissionfeedbackcategoryRepository;
     this.applicantsubmissioninfoRepository = applicantsubmissioninfoRepository;
 }
 /// <summary>
 /// 初始化一个<c>MessageServiceImpl</c>类型的实例。
 /// </summary>
 public MessageServiceImpl(IRepositoryContext context,
     IMessageRepository messageRepository,
     IContactRepository contactRepository,
     ISendMessageService sendMessageService)
     : base(context)
 {
     this.messageRepository = messageRepository;
     this.contactRepository = contactRepository;
     this.sendMessageService = sendMessageService;
 }
Example #27
0
 public HubViewModelBuilder(IRegionRepository regionRepository, IContactRepository contactRepository,
                            IProducerRepository producerRepository, IHubRepository hubRepository,
                            ICommodityProducerRepository commodityProducerRepository, IMasterDataUsage masterDataUsage)
 {
     _regionRepository = regionRepository;
     _contactRepository = contactRepository;
     _producerRepository = producerRepository;
     _hubRepository = hubRepository;
     _commodityProducerRepository = commodityProducerRepository;
     _masterDataUsage = masterDataUsage;
 }
Example #28
0
 public ContactsController(ICafeRepository cafeRepository, ISocialLinkRepository socialLinkRepository,
     IContactRepository contactRepository, IFormItemRepository formItemRepository,
     ICountryRepository countryRepository, IOutputCacheDependencies outputCacheDependencies)
 {
     mCountryRepository = countryRepository;
     mFormItemRepository = formItemRepository;
     mCafeRepository = cafeRepository;
     mSocialLinkRepository = socialLinkRepository;
     mContactRepository = contactRepository;
     mOutputCacheDependencies = outputCacheDependencies;
 }
Example #29
0
 public EwayPaymentsService(IInvoiceRepository invoiceRepository, IAccountRepository accountRepository,
     IContactRepository contactRepository,
     IEwayProcessedDataRepository ewayDataRepository,
     IInvoiceHardcopyRepository invoiceHardcopyRepository)
 {
     _invoiceRepository = invoiceRepository;
     _accountRepository = accountRepository;
     _contactRepository = contactRepository;
     _ewayDataRepository = ewayDataRepository;
     _invoiceHardcopyRepository = invoiceHardcopyRepository;
 }
 public CnUMasterDataController(IMasterDataDTODeserialize masterDataDtoDeserialize, IPublishMasterData publishMasterData, ICostCentreRepository costCenterRepository, IMasterDataToDTOMapping mapping, IContactRepository contactRepository, IAssetRepository assetRepository, IDistributrFileRepository imageRepository, IUserRepository userRepository)
 {
     _masterDataDTODeserialize = masterDataDtoDeserialize;
     _publishMasterData = publishMasterData;
     _costCenterRepository = costCenterRepository;
     _mapping = mapping;
     _contactRepository = contactRepository;
     _assetRepository = assetRepository;
     _imageRepository = imageRepository;
     _userRepository = userRepository;
 }
 public ContactManager(IContactRepository contactRepository)
 {
     _contactRepository = contactRepository;
 }
Example #32
0
 public ContactBLL(IContactRepository repository, IAddress address)
 {
     _repository = repository;
     _address    = address;
 }
Example #33
0
 public ContactController(IContactRepository repository)
 {
     _repository = repository;
 }
Example #34
0
 public ContactCreationService(IContactRepository contactRepository)
 {
     _contactRepository = contactRepository;
 }
Example #35
0
 public ContactService(IContactRepository contactRepository)
 {
     this._contactRepository = contactRepository;
 }
 protected AbstractContactInteractor(IContactRepository repository, IMessenger messenger, IEncryption keyEncryption)
     : base(messenger, keyEncryption)
 {
     this.Repository = repository;
     this.Messenger  = messenger;
 }
Example #37
0
 public EditController(IContactRepository contactRepository)
 {
     _contactRepository = contactRepository;
 }
 public ContactController(IContactRepository contactRepo)
 {
     ContactRepo = contactRepo;
 }
 public ContactMastersController()
 {
     this._contactRepo = new ContactRepo <ContactMaster>();
 }
Example #40
0
 public ContactService()
 {
     contactRepository = new ContactRepository(contactDBContext);
 }
 public ContactManager(IContactRepository _repository)
 {
     repository = _repository;
 }
Example #42
0
 public ContactRepository(IContactRepository <GContact> globalRepository)
 {
     _globalRepository = globalRepository;
 }
 public PersonService(IPersonRepository personRepository, IContactRepository contactRepository)
 {
     _personRepository  = new PersonRepository();
     _contactRepository = new ContactRepository();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DeclineContactInteractor"/> class.
 /// </summary>
 /// <param name="contactRepository">
 /// The contact repository.
 /// </param>
 public DeclineContactInteractor(IContactRepository contactRepository)
 {
     this.ContactRepository = contactRepository;
 }
 public ContactListQueryHandler(IContactRepository contactRepository, IMapper mapper) : base(mapper)
 {
     _contactRepository = contactRepository;
 }
 public ContactMastersController(IContactRepository <ContactMaster> repository)
 {
     this._contactRepo = repository;
 }
 public DeleteContactCommandHandler(IContactRepository contactRepository)
 {
     this._contactRepository = contactRepository;
 }
 public SubmitApplicationHandler(IApplyRepository applyRepository, IContactRepository contactRepository)
 {
     _applyRepository   = applyRepository;
     _contactRepository = contactRepository;
 }
Example #49
0
 public ContactReadCommand(IContactRepository contactRepository)
 {
     _contactRepository = contactRepository;
 }
Example #50
0
 public ContactService(INotifier notifier,
                       IContactRepository contactRepository) : base(notifier)
 {
     _contactRepository = contactRepository;
 }
Example #51
0
 public ContactAdminController(IContactRepository contactRepository)
 {
     _contactRepository = contactRepository;
 }
 public GetContactUseCase(IContactRepository repository)
 {
     _repository = repository;
 }
Example #53
0
 public ContactsController(IContactRepository contactRepo)
     : base(contactRepo)
 {
 }
 public ContactService(IContactRepository <Contact> contactRepository)
 {
     _contactRepository = contactRepository;
 }
Example #55
0
 public ContactsController(IContactRepository contactRepository, ICommandHandler <CreateContactCommand> createContactHandler, UnitOfWork unitOfWork)
 {
     this.contactRepository    = contactRepository;
     this.createContactHandler = createContactHandler;
     this.unitOfWork           = unitOfWork;
 }
Example #56
0
 public ContactsService(IContactRepository <Contact> contactRepository, IMapper mapper)
 {
     _contactRepository = contactRepository;
     _mapper            = mapper;
 }
Example #57
0
 public DeleteContactCommandHandler(IContactRepository contactRepository, IMapper mapper)
 {
     _contactRepository = contactRepository;
     _mapper            = mapper;
 }
Example #58
0
 public ContactValidator(
     IContactRepository arg0
     ) : base()
 {
     field0 = arg0;
 }
Example #59
0
 public ContactService(IContactRepository ContactRepository)
 {
     _contactRepository = ContactRepository;
 }
 public ContactSearchService(ServiceContext context, IContactRepository contactRepo)
     : base(context)
 {
     _contactRepo = contactRepo;
 }