public ContactFolderContactsController(IContactFolderRepository contactfolderRepository, ICompanyRepository companyRepository, IContactRepository contactRepository, IContactFolderContactRepository contactfoldercontactRepository) { this.contactfolderRepository = contactfolderRepository; this.companyRepository = companyRepository; this.contactRepository = contactRepository; this.contactfoldercontactRepository = contactfoldercontactRepository; }
public AddressBookViewModel(IContactRepository repository) { AddNewContactCommand = new DelegateCommand(parameter => ExecuteAddNewContact(), parameter => CanExecuteAddNewContact()); SaveContactCommand = new DelegateCommand(parameter => ExecuteSaveContact(), parameter => CanExecuteSaveContact()); Contacts = new ObservableCollection<Contact>(repository.GetContacts()); }
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; }
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; }
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; }
public ContactController(IUnitOfWork uow, IContactRepository ContactRepository, IUserAccountRepository DefineUserRepository) { _uow = uow; _RContact = ContactRepository; _RDefineUser = DefineUserRepository; EDefineUser = new UserAccountExtentions(_RDefineUser); EContact = new ContactExtensions(_RContact, _RDefineUser); }
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; }
/// <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))); }
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; }
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); }
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; }
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; }
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; }
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; }
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; }
public ContactBLL(IContactRepository repository, IAddress address) { _repository = repository; _address = address; }
public ContactController(IContactRepository repository) { _repository = repository; }
public ContactCreationService(IContactRepository contactRepository) { _contactRepository = contactRepository; }
public ContactService(IContactRepository contactRepository) { this._contactRepository = contactRepository; }
protected AbstractContactInteractor(IContactRepository repository, IMessenger messenger, IEncryption keyEncryption) : base(messenger, keyEncryption) { this.Repository = repository; this.Messenger = messenger; }
public EditController(IContactRepository contactRepository) { _contactRepository = contactRepository; }
public ContactController(IContactRepository contactRepo) { ContactRepo = contactRepo; }
public ContactMastersController() { this._contactRepo = new ContactRepo <ContactMaster>(); }
public ContactService() { contactRepository = new ContactRepository(contactDBContext); }
public ContactManager(IContactRepository _repository) { repository = _repository; }
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; }
public ContactReadCommand(IContactRepository contactRepository) { _contactRepository = contactRepository; }
public ContactService(INotifier notifier, IContactRepository contactRepository) : base(notifier) { _contactRepository = contactRepository; }
public ContactAdminController(IContactRepository contactRepository) { _contactRepository = contactRepository; }
public GetContactUseCase(IContactRepository repository) { _repository = repository; }
public ContactsController(IContactRepository contactRepo) : base(contactRepo) { }
public ContactService(IContactRepository <Contact> contactRepository) { _contactRepository = contactRepository; }
public ContactsController(IContactRepository contactRepository, ICommandHandler <CreateContactCommand> createContactHandler, UnitOfWork unitOfWork) { this.contactRepository = contactRepository; this.createContactHandler = createContactHandler; this.unitOfWork = unitOfWork; }
public ContactsService(IContactRepository <Contact> contactRepository, IMapper mapper) { _contactRepository = contactRepository; _mapper = mapper; }
public DeleteContactCommandHandler(IContactRepository contactRepository, IMapper mapper) { _contactRepository = contactRepository; _mapper = mapper; }
public ContactValidator( IContactRepository arg0 ) : base() { field0 = arg0; }
public ContactService(IContactRepository ContactRepository) { _contactRepository = ContactRepository; }
public ContactSearchService(ServiceContext context, IContactRepository contactRepo) : base(context) { _contactRepo = contactRepo; }